Eclipse的错误:出现NoClassDefFoundError:爪哇/郎/ REF / FinalReference爪哇、错误、Eclipse、NoClassDefFoundError

2023-09-13 00:41:57 作者:鱼亡深海

我已经安装了Eclipse为Android和工作好。当我试图启动一个java文件,我得到了以下错误:VM的初始化过程中出现错误 爪哇/郎/ NoClassDefFoundError的:爪哇/郎/ REF / FinalReference

经过一番研究,我知道这是一些与buildpass,但在尝试我没有得到它的工作之后。我删除了一切(Eclipse中的Java,Android的),并重新安装一切,但与同disapointing结果。可能有人向我解释怎么做,因为我从互联网上尝试对我来说没有工作。

解决方案 找到运行配置 - > Java应用程序 在新配置的Classpath选项卡,找到的Andr​​oid库引导下的条目,并删除它。 仍然在Classpath选项卡中,选择引导项,然后单击高级按钮。 选择添加库,然后单击确定。 选择JRE系统库,然后单击下一步。 选择工作空间缺省JRE,然后单击Finish(完成)。 根据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.

解决方案 eclipse安装不了

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