emmarun

Using emmarun (main method not found)

陌路散爱 提交于 2019-12-02 12:06:49
问题 I have an ultra simple file in an empty directory: public class Test { public static void main(String[] args) { System.out.println("Test"); } } And the following works as expected javac Test.java java Test > Test I am on Mac OS X, using emma-2.0.5312 and java 1.7.0_40 emma.jar has been installed to /Library/Java/Extensions, so this works java emmarun (it displays the help for using emmarun) Next I run java emmarun -cp . Test And I get the error: emmarun: [MAIN_METHOD_NOT_FOUND] application

Using emmarun (main method not found)

前提是你 提交于 2019-12-02 03:27:58
I have an ultra simple file in an empty directory: public class Test { public static void main(String[] args) { System.out.println("Test"); } } And the following works as expected javac Test.java java Test > Test I am on Mac OS X, using emma-2.0.5312 and java 1.7.0_40 emma.jar has been installed to /Library/Java/Extensions, so this works java emmarun (it displays the help for using emmarun) Next I run java emmarun -cp . Test And I get the error: emmarun: [MAIN_METHOD_NOT_FOUND] application class [Test] does not have a runnable public main() method Exception in thread "main" com.vladium.emma