|
Options and VM PropertiesTo see what options are supported by One-JAR use the --one-jar-help command line option on a One-JAR file: $ java -jar one-jar-example-0.97.jar --one-jar-help One-Jar uses the following command-line arguments --one-jar-help Shows this message, then exits. --one-jar-version Shows the version of One-JAR, then exits. One-Jar uses the following VM properties (-D Version information is presented as a single line response. For example: To see what the $ java -Done-jar.verbose=true -jar one-jar-example-0.97.jar JarClassLoader: One-Jar-Expand=expand,doc,file.txt JarClassLoader: Info: resource: one-jar-example-0.97.jar!META-INF/MANIFEST.MF JarClassLoader: cached bytes for class OneJar.class JarClassLoader: cached bytes for class com.simontuffs.onejar.Boot.class JarClassLoader: cached bytes for class com.simontuffs.onejar.Handler$1.class JarClassLoader: cached bytes for class com.simontuffs.onejar.Handler.class JarClassLoader: cached bytes for class com.simontuffs.onejar.IProperties.class JarClassLoader: cached bytes for class com.simontuffs.onejar.JarClassLoader$1.class JarClassLoader: cached bytes for class com.simontuffs.onejar.JarClassLoader$ByteCode.class JarClassLoader: cached bytes for class com.simontuffs.onejar.JarClassLoader.class JarClassLoader: Info: resource: one-jar-example-0.97.jar!OneJar.java JarClassLoader: Info: resource: one-jar-example-0.97.jar!boot-manifest-external.mf ... many more lines until the first line of output from the Main class.This diagnostic output can prove useful when trying to debug class-loading issues. |