Using emmarun (main method not found)

前端 未结 1 1147
耶瑟儿~
耶瑟儿~ 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)
提交回复
热议问题