LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 03-03-2006, 01:53 PM   #1
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 547

Rep: Reputation: 38
dir to jar-file


What utility/package shall I use to make a jar file?
 
Old 03-03-2006, 02:06 PM   #2
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
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!
 
Old 03-03-2006, 02:21 PM   #3
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 547

Original Poster
Rep: Reputation: 38
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.
 
Old 03-04-2006, 05:05 AM   #4
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 547

Original Poster
Rep: Reputation: 38
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.
 
Old 03-04-2006, 11:51 AM   #5
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
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
 
Old 03-12-2006, 07:42 AM   #6
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 547

Original Poster
Rep: Reputation: 38
Fixed it! I hade to add write and exec access. This was sloppy of me to miss it.

Thanks for the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I must install a .jar file and I don't know how to do it :| zovres Linux - Newbie 6 10-28-2008 06:46 AM
jar file installation zakidad Linux - Newbie 1 07-19-2005 12:48 AM
how to edit a *.jar file? ploosh Linux - Newbie 4 02-28-2005 03:58 PM
Fedora Core 1 Associating .jar files with java -jar command pymehta Fedora 0 01-13-2005 06:26 AM
Help installing a (.jar) file. troycus Linux - Newbie 6 10-08-2003 08:23 PM


All times are GMT -5. The time now is 08:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration