Originally Posted by hawhill
I think the .class file should be in a directory according to the package it's in. The class loader is probably looking for a "test/Main.class" within the .jar. When you packaged it, you put it on the root directory of the .jar.
I tried put .class in test directory, it got the same issue.