LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   dir to jar-file (https://www.linuxquestions.org/questions/linux-software-2/dir-to-jar-file-421314/)

kalleanka 03-03-2006 12:53 PM

dir to jar-file
 
What utility/package shall I use to make a jar file?

Mega Man X 03-03-2006 01:06 PM

you will use, well, jar :). If you have Java installed you should also have the jar utility. I'm not sure though, if you need to have Java SDK.

Now, if you are not going to deploy java applications in a executable-jar file, you are better of using other utitility as tar, bunzip or compress. Jar has a lousy compression rate. But then again, it was not truly made for that.

Check this thread to learn how to use tar. Jar works the exactly same way, although, jar compress a file while tar does not. tar simply preserves the directory structure. Well, check the thread:

http://www.linuxquestions.org/questi...&highlight=tar

Regards!

kalleanka 03-03-2006 01:21 PM

I need it for firefox since they use the jar format. I found ot that I need "The Java Archive Tool" but I have a hard time to find a download.

Thanks for your response.

kalleanka 03-04-2006 04:05 AM

ok i tried to get the SDK from sun but its a binary install and it does not work on mandriva. And all i want is to pack a dir into a jarfile.

Mega Man X 03-04-2006 10:51 AM

The bin file should work an any distribution. Check either the thread at the end of this message or Sun instructions to install Java(link also in this message). I still don't understand though, why you need Jar to compress a directory for Firefox(?). If you are actually trying to get the java "plugin" to run a few java applications within Firefox, the JRE would be enough.

http://www.linuxquestions.org/questi...40#post1841740

http://java.sun.com/j2se/1.5.0/install-linux.html

kalleanka 03-12-2006 06:42 AM

Fixed it! I hade to add write and exec access. This was sloppy of me to miss it.

Thanks for the help.


All times are GMT -5. The time now is 03:37 PM.