I have a java classfile which has 'Hello World'. I have created JAR file and Manifest file. When I do a RUNJVA command with Classfile it works fine. But when I try to use JAR file in RUNJVA, I don't see any output after the call. Classpath is set properly. I Just get 'Java program completed with exit code 1'
Thanks in Advance.
Make sure that you have a file META-INF/MANIFEST.MF
in your jar file that contains at least something like Main-Class: full.qualified.name.of.MyClass
and start it with java -cp {my-classpath-here} -jar myjarfile.jar