Using -jar option?

General discussion on the JZOS batch launcher and toolkit
Post Reply
KenKelso
Posts: 1
Joined: Wed Nov 02, 2005 11:15 am

Using -jar option?

Post by KenKelso »

I have been provided with a .jar file, and a command to run it on Windows like
java -Dopt1=val1 -Dopt2=val2 -jar JARFILE-build.123.jar ARG

I can see that -jar is an option in the z/OS jvm (java -? shows it). Can I run this with JZOS, or do I have to specify the class within the .jar that is to be used?
Guest

Post by Guest »

There is not support in the jzos launcher for the -jar option.

There is a simple workaround: Open the jar and examine the manifest file to see what the "main" class is and run that class with the jar in the classpath.
Post Reply