MozillaZine

How do I turn a folder into a JAR file?

Discuss application theming and theme development.
IE_User_Forever

User avatar
 
Posts: 56
Joined: April 10th, 2007, 10:26 pm

Post Posted April 28th, 2007, 8:58 pm

UHG UHG -_- I've spent forever making this theme and I'm done =] but I have to turn the folder into a JAR file. How do I do this?

Guest
Guest
 

Post Posted April 28th, 2007, 9:00 pm

Use a zip program and change the file extension to .jar.

IE_User_Forever

User avatar
 
Posts: 56
Joined: April 10th, 2007, 10:26 pm

Post Posted April 28th, 2007, 9:03 pm

How? I have winzip will that work?

IE_User_Forever

User avatar
 
Posts: 56
Joined: April 10th, 2007, 10:26 pm

Post Posted April 28th, 2007, 10:24 pm

You there?

smsmith
Moderator

User avatar
 
Posts: 18871
Joined: December 7th, 2004, 8:51 pm
Location: Illinois

Post Posted April 28th, 2007, 10:43 pm

Moving to Theme Development.

The short answer is, ZIP the folder, then rename it to a JAR file.
Give a man a fish, and he eats for a day. Teach a man to fish, and he eats for a lifetime.
I like poetry, long walks on the beach and poking dead things with a stick.
Please do not PM me for personal support. Keep posts here in the Forums instead and we all learn.

IE_User_Forever

User avatar
 
Posts: 56
Joined: April 10th, 2007, 10:26 pm

Post Posted April 28th, 2007, 11:10 pm

That didn't work =[ I renamed it My_Theme.jar
And it just stays a regular zip file.

mcdavis

User avatar
 
Posts: 3111
Joined: December 9th, 2005, 5:51 am

Post Posted April 28th, 2007, 11:20 pm

A jar file is a zip file with a .jar extension.

Step 1: winzip, save as zip ==> My_Theme.zip
Step 2: rename zip file to jar file ==> My_Theme.jar
Step 3: ???
Step 4: Profit!
Theme Development is Radical Participation.
NNL Beta Builds for Current and Up-coming Firefox
Dear User: Your Help is Needed

IE_User_Forever

User avatar
 
Posts: 56
Joined: April 10th, 2007, 10:26 pm

Post Posted April 28th, 2007, 11:25 pm

I feel stupid saying this, but I cant find the save button. =| Do I have to buy Winzip?

mcdavis

User avatar
 
Posts: 3111
Joined: December 9th, 2005, 5:51 am

Post Posted April 28th, 2007, 11:32 pm

You could try ALZIP. It works for me and it's free. http://www.altools.net/Default.aspx?tabid=53

(I think Winzip works too, I just don't use it.)
Theme Development is Radical Participation.
NNL Beta Builds for Current and Up-coming Firefox
Dear User: Your Help is Needed

smsmith
Moderator

User avatar
 
Posts: 18871
Joined: December 7th, 2004, 8:51 pm
Location: Illinois

Post Posted April 28th, 2007, 11:35 pm

WinRAR is a good one, and it's free to use:
http://www.rarlab.com/

I'm not sure if it will run on Win98 though.

7zip is another good free one, and it will work on Win98:
http://www.7-zip.org/
Give a man a fish, and he eats for a day. Teach a man to fish, and he eats for a lifetime.
I like poetry, long walks on the beach and poking dead things with a stick.
Please do not PM me for personal support. Keep posts here in the Forums instead and we all learn.

mcdavis

User avatar
 
Posts: 3111
Joined: December 9th, 2005, 5:51 am

Post Posted April 28th, 2007, 11:40 pm

Yeah I like 7-Zip too.
Theme Development is Radical Participation.
NNL Beta Builds for Current and Up-coming Firefox
Dear User: Your Help is Needed

IE_User_Forever

User avatar
 
Posts: 56
Joined: April 10th, 2007, 10:26 pm

Post Posted April 28th, 2007, 11:47 pm

I am starting to feel stupid here. =[ I just want to turn this folder into an Executive JAR file so I can drag into my theme box and use that theme.

smsmith
Moderator

User avatar
 
Posts: 18871
Joined: December 7th, 2004, 8:51 pm
Location: Illinois

Post Posted April 28th, 2007, 11:52 pm

I believe you are using Win XP, right? I believe default behavior is to right click the folder, choose "Add to Foldername.ZIP", or some other such choice. I don't think that came from WinRAR, I believe that is default (Win XP has ZIP built in).

Then, right click the resultant ZIP file, choose Rename, and change the ZIP part to JAR. As long as your folder structure is right and you have the correct installation files, the theme should install as you describe.
Give a man a fish, and he eats for a day. Teach a man to fish, and he eats for a lifetime.
I like poetry, long walks on the beach and poking dead things with a stick.
Please do not PM me for personal support. Keep posts here in the Forums instead and we all learn.

IE_User_Forever

User avatar
 
Posts: 56
Joined: April 10th, 2007, 10:26 pm

Post Posted April 28th, 2007, 11:57 pm

What? Not a valid install packet??? -_-

smsmith
Moderator

User avatar
 
Posts: 18871
Joined: December 7th, 2004, 8:51 pm
Location: Illinois

Post Posted April 28th, 2007, 11:59 pm

Like I said, you have to have all the bits and pieces in the right place. Do you have an install.rdf file and a contents.rdf file?

You can then either have all the other folders in the same directory, or in a separate chrome folder. If you use the chrome folder, I think you need to use a chrome.manifest file. I don't use that method, I'm an "old school" guy.

If you are confused about what I am talking about, download another theme, then rename it to a ZIP file and extract it. Then you can see the proper file structure.
Give a man a fish, and he eats for a day. Teach a man to fish, and he eats for a lifetime.
I like poetry, long walks on the beach and poking dead things with a stick.
Please do not PM me for personal support. Keep posts here in the Forums instead and we all learn.

Return to Theme Development


Who is online

Users browsing this forum: No registered users and 0 guests