Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Redhat / Fedora Linux Help > How to unpack JAR files in Linux ?

Forgot Password?
 Redhat / Fedora Linux Help   Help and discussion related to Redhat and Fedora Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 03-07-2005   #1 (permalink)
Just Joined!
 
Join Date: Mar 2005
Posts: 9
How to unpack JAR files in Linux ?

Hi guys, i am new to the Unix/Linux OS. as part of my uni course, i have to complete a Unix Programming module. I been tasked to develop a simple shell script that uses some java programs that has been provided by my lecturer to aid in my assignment.

Now i am been trying to upack the jar files. I used jar --help and the help instructed me to use jar -x <nameofjarfiles> as parameters. Upon hitting the keyboard, the terminal didn't not respone and only after i used CRTL-C that it went back to the terminal.

Could someone help me out in the commands in unpacking the java jar files so that i could use them or instruct me to any pages that contains information of developing of shell scripts using java class files.

I'm currently using Fedora Core 2.

regards
wilson
tanweeyang is offline  



Old 03-07-2005   #2 (permalink)
Linux Enthusiast
 
Join Date: Feb 2005
Location: SE, Stockholm
Posts: 512
Send a message via ICQ to swemic Send a message via MSN to swemic
It's no difference by using Java in Linux or any other OS.
Unless it is a java that is not completly Sun Java compatible.

Just to be sure, you did not capitilize any in your command or options when you tried to extract your .jar file?
swemic is offline  
Old 03-07-2005   #3 (permalink)
Linux Newbie
 
Join Date: Jul 2004
Location: Calcutta, India
Posts: 220
Send a message via Yahoo to prosen
same happens with me .. I guess you should install jdk ( Java Development Kit ) first. Not sure though ...
prosen is offline  
Old 03-07-2005   #4 (permalink)
Linux Enthusiast
 
Join Date: Feb 2005
Location: SE, Stockholm
Posts: 512
Send a message via ICQ to swemic Send a message via MSN to swemic
Did you by any chance install any other version than the Sun Java 1.4.2?

If you did, remove it and install the one above.
Me my self have a few bad experiences even with Sun 1.5.x
But I do know there are a few other as "Kaffe" and so on, remove and install Sun, should be good enough with JRE 1.4.2
swemic is offline  
Old 03-07-2005   #5 (permalink)
Just Joined!
 
Join Date: Mar 2005
Posts: 9
Quote:
Originally Posted by swemic
Did you by any chance install any other version than the Sun Java 1.4.2?

If you did, remove it and install the one above.
Me my self have a few bad experiences even with Sun 1.5.x
But I do know there are a few other as "Kaffe" and so on, remove and install Sun, should be good enough with JRE 1.4.2
okay guys...sorry for the foobar, i didn't install jdk in the first place..i tot checking the java option during fedora installtion will do the trick ..sorry my fault..

I just installed JDK on my machine, may i know how do i set the class path so that i may call the compliers from wherere i wish ..similar to the windows enviroment..i understand in Windows, you actually set the enviroment variable, so what do i change in Linix so that i can do the same ?

Oh yeah ...with regards to the JAR files...just open up a file manager, select the jar file, right click to retirve the contents...is suffic..
regards
wilson
tanweeyang is offline  
Old 03-07-2005   #6 (permalink)
Linux Enthusiast
 
Join Date: Feb 2005
Location: SE, Stockholm
Posts: 512
Send a message via ICQ to swemic Send a message via MSN to swemic
To set environment variables in Linux you use the command
Code:
export MYVARIABLE=some-content
And to set system wide used variables
you just insert your variables in file /etc/profile
Untill you have rebooted your system you have to do
source /etc/profile for your newly variables to take affect
Or if you wish to use user-local variables (which most of the cases is good enough) just insert your variables in
/home/<userid>/.bash_profile
These variables and settings will take affect the very next time you loggin
swemic is offline  
Old 05-18-2009   #7 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 1
Quote:
Originally Posted by tanweeyang View Post
Hi guys, i am new to the Unix/Linux OS. as part of my uni course, i have to complete a Unix Programming module. I been tasked to develop a simple shell script that uses some java programs that has been provided by my lecturer to aid in my assignment.

Now i am been trying to upack the jar files. I used jar --help and the help instructed me to use jar -x <nameofjarfiles> as parameters. Upon hitting the keyboard, the terminal didn't not respone and only after i used CRTL-C that it went back to the terminal.

Could someone help me out in the commands in unpacking the java jar files so that i could use them or instruct me to any pages that contains information of developing of shell scripts using java class files.

I'm currently using Fedora Core 2.

regards
wilson
jar xf <jar> will work
menalek is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:11 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1