I went to the command prompt (I'm using windows) and type as such, to create a test.jar.
So, the test.jar is created in the same directory as the manifest.txt and test.class.
jar cvfm test.jar manifest.txt test.class
It gave me an error:
java -jar test.jar
I tried many times, recompile, checked my java code, checked the manifest file, recreated the .jar file, and try, and still get this error.
Exception in thread "main" java.lang.NoClassDefFoundError: test/class