Eclipse的错误:出现NoClassDefFoundError:爪哇/郎/ REF / FinalReference [英] Eclipse error: NoClassDefFoundError: java/lang/ref/FinalReference
问题描述
我已经安装了Eclipse为Android和工作好。当我试图启动一个java文件,我得到了以下错误:VM的初始化过程中出现错误 爪哇/郎/ NoClassDefFoundError的:爪哇/郎/ REF / FinalReference
经过一番研究,我知道这是一些与buildpass,但在尝试我没有得到它的工作之后。我删除了一切(Eclipse中的Java,Android的),并重新安装一切,但与同disapointing结果。可能有人向我解释怎么做,因为我从互联网上尝试对我来说没有工作。
- 找到运行配置 - > Java应用程序
- 在新配置的Classpath选项卡,找到的Android库引导下的条目,并删除它。
- 仍然在Classpath选项卡中,选择引导项,然后单击高级按钮。
- 选择添加库,然后单击确定。
- 选择JRE系统库,然后单击下一步。
- 选择工作空间缺省JRE,然后单击Finish(完成)。
href="http://www.frickingnutz.com/files/android_pdf/FAQs.pdf">http://www.frickingnutz.com/files/android_pdf/FAQs.pdf
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/NoClassDefFoundError: java/lang/ref/FinalReference
After some research I know it was something with buildpass but after trying I didn't got it to work. I removed it all (Eclipse, Java, Android) and reinstall everything but with the same disapointing result. Could somebody explain to me what to do because what I tried from the internet didn't work for me.
- Find Running configurations -> java application
- In the new configuration's Classpath tab, find "Android Library" under Bootstrap Entries and remove it.
- Still in the Classpath tab, select Bootstrap Entries and click the Advanced button.
- Choose Add Library and click OK.
- Select JRE System Library and click Next.
- Select Workspace Default JRE and click Finish.
Based on http://www.frickingnutz.com/files/android_pdf/FAQs.pdf
这篇关于Eclipse的错误:出现NoClassDefFoundError:爪哇/郎/ REF / FinalReference的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!