Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 313
Qwyrp Avatar asked Feb 26 '12 17:02

Qwyrp


Video Answer


1 Answers

  1. Find Running configurations -> java application
  2. In the new configuration's Classpath tab, find "Android Library" under Bootstrap Entries and remove it.
  3. Still in the Classpath tab, select Bootstrap Entries and click the Advanced button.
  4. Choose Add Library and click OK.
  5. Select JRE System Library and click Next.
  6. Select Workspace Default JRE and click Finish.

Based on http://www.frickingnutz.com/files/android_pdf/FAQs.pdf

like image 151
Arie- Avatar answered Nov 12 '22 20:11

Arie-