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?
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.