This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes .jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark ".jar" Watch ".jar" New topic


Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have JDK 1.3 and I try run a file.jar with "jar -xf file.jar" but nothing happens.
Can someone helpme?
Thank you in advance.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Are you trying to EXTRACT classes from a jar or RUN a jar?
The "jar xf" command is used to extract class from a jar. The "java -jar" command is used to run a jar.

"JavaRanch, where the deer and the Certified play" - David O'Meara
jQuery in Action, 2nd edition
subject: .jar
Similar Threads
client and database URLyBird
A problem about JDK tools java or javaw...
Problem running jar on new Windows 7 install
"Fatal exception occurred. Program will exit."