Eclipse error: NoClassDefFoundError: java/lang/ref/FinalReference

前端 未结 5 1653
庸人自扰
庸人自扰 2020-12-10 05:08

I\'ve installed Eclipse for android and that works okay. When I try to start a java-file I got the following error: Error occurred during initialization of VM java/lang/NoCl

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-10 05:53

    I have been frustrated by this error for several days, by comparing with my colleagues Eclipse preferences with mine, the problem was fixed by changing the Java compliance level from 1.7 to 1.6. This will also change the generated .class files and source compatibility to 1.6.

提交回复
热议问题