Using emmarun (main method not found)

前端 未结 1 1051
耶瑟儿~
耶瑟儿~ 2021-01-24 03:44

I have an ultra simple file in an empty directory:

public class Test {
    public static void main(String[] args) {
        System.out.println(\"Test\");
    }
}         


        
相关标签:
1条回答
  • 2021-01-24 04:19

    As per this link http://vikashazrati.wordpress.com/2011/10/09/quicktip-verifyerror-with-jdk-7/

    If I use

    java -XX:-UseSplitVerifier emmarun -cp . Test
    

    It works just fine

    Apparently there are some changes to the bytecode in this version of java, and emma has not been updated to deal with it.

    0 讨论(0)
提交回复
热议问题