LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 12:53 PM   #1
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

Rep: Reputation: 38
dir to jar-file


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

Rep: Reputation: 65
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, 01:21 PM   #3
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

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, 04:05 AM   #4
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

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, 10:51 AM   #5
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
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, 06:42 AM   #6
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

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



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 05:46 AM
jar file installation zakidad Linux - Newbie 1 07-18-2005 11:48 PM
how to edit a *.jar file? ploosh Linux - Newbie 4 02-28-2005 02:58 PM
Fedora Core 1 Associating .jar files with java -jar command pymehta Fedora 0 01-13-2005 05:26 AM
Help installing a (.jar) file. troycus Linux - Newbie 6 10-08-2003 07:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:53 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
Open Source Consulting | Domain Registration