wood burning stoves*
The moose likes Java in General and the fly likes jar -J option 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 » Java in General
Bookmark "jar -J option" Watch "jar -J option" New topic
Author

jar -J option

Brian Fryer
Greenhorn

Joined: Oct 13, 2011
Posts: 2
According to the Oracle jar documentation, jar can pass JVM options with a -J option after the files list. However, when I try this, jar seems to interpret it as a file in the list and returns no such file or directory.

Also, jar usage does not show the option:

I am running

Is this option no longer available?
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
When I tried to specify using -j option, it gave me an error. Try like below and let us know if this is the way to use it..

-J option is given at the last...

Brian Fryer
Greenhorn

Joined: Oct 13, 2011
Posts: 2
Here is what I entered:

 
Don't get me started about those stupid light bulbs.
 
subject: jar -J option
 
Similar Threads
What is the easiest wat to open a JAR file?
how to write jar file
Red Hat fun! a.k.a.-Hey, Barry!
Exception in thread "main" java.lang.NoClassDefFoundError: client/ui/RecorderMainFrame
JAR file