This content has been marked as final. Show 2 replies
When I create a jar file with the jar tool from the java source codeThis is where you are going wrong. JAR files aren't supposed to contain source code. Check your command line.
Thank you very much. This is my fault that the formulation targeted at "source code", whereby I meant the output of the javac tool--the class file. Nevertheless, the problem seems now to be solved as I navigated to the directory of the class file, executed the jar tool there and it generated a perfectly good output. I do not know what was wrong previously.