LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help installing a (.jar) file. (https://www.linuxquestions.org/questions/linux-newbie-8/help-installing-a-jar-file-101596/)

troycus 10-08-2003 07:13 AM

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.

TheRealDeal 10-08-2003 07:19 AM

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 :)

troycus 10-08-2003 07:41 AM

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

TheRealDeal 10-08-2003 07:46 AM

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 :)

troycus 10-08-2003 08:00 AM

it says:

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

Does that mean I can use Gunzip?

TheRealDeal 10-08-2003 05:46 PM

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:)

troycus 10-08-2003 07:23 PM

Thanks! That worked.


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