File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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
I agree. Here's the link:
subject: .jar
It's not a secret anymore!