LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-08-2003, 07:13 AM   #1
troycus
Member
 
Registered: Sep 2003
Posts: 84

Rep: Reputation: 15
Help installing a (.jar) file.


I'm good on how to decompress with gunzip and tar, but not with this (.jar) extention. Any help would be appreciated.
 
Old 10-08-2003, 07:19 AM   #2
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
Hi,

To extract from the jar file do 'jar -x /path/filename.jar'

Do a 'man jar' though and you can read about what all the other switches are for this.

>Craig
 
Old 10-08-2003, 07:41 AM   #3
troycus
Member
 
Registered: Sep 2003
Posts: 84

Original Poster
Rep: Reputation: 15
I just tried that and it didn't do anything. It just hang there as if it's doing something. This is what I did:

I'm in my root directory and nothing happens.

jar -x xnap.jar
 
Old 10-08-2003, 07:46 AM   #4
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
Hi,

cd into the directory where your xnap.jar file is, then type 'file xnap.jar' and see what it says, this will tell you exactly what kind of file it is. I'm saying this because last week I downloaded a .jar file and couldn't extract it with 'jar', I did a 'file' on the actual file and found it was a zip file. I used unzip and it extracted fine.

>Craig
 
Old 10-08-2003, 08:00 AM   #5
troycus
Member
 
Registered: Sep 2003
Posts: 84

Original Poster
Rep: Reputation: 15
it says:

Zip archive data, at least v2.0 to extract.

Does that mean I can use Gunzip?
 
Old 10-08-2003, 05:46 PM   #6
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
Hi,

Gunzip is for gzip files. Unzip is for zip files. Just type ....

'unzip xnap.jar' and see if it unzips.

I had the exact prob you are having last week and unzip extracted it for me.

Regs
Crai g
 
Old 10-08-2003, 07:23 PM   #7
troycus
Member
 
Registered: Sep 2003
Posts: 84

Original Poster
Rep: Reputation: 15
Thanks! That worked.
 
  


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 05:46 AM
How to run a java jar file. sabliny Programming 7 11-05-2005 01:59 PM
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


All times are GMT -5. The time now is 11:57 AM.

Main Menu
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