Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse not detecting the installed java

Tags:

java

eclipse

I had installed Eclipse Galileo first and after that installed Java.

But it is not detecting my java.

What configuration changes can I make so that Eclipse can run my java programs?

========================== Edited ================================

like image 525
Yatendra Avatar asked Feb 24 '10 12:02

Yatendra


2 Answers

You can specify the exact jvm you want to use through:

  • a -vm argument
  • directly within the eclipse.ini

Once started, you can reference as many JVM you need in the Installed JRE preference panel

alt text http://img168.imageshack.us/img168/3307/eclipseinstalledjre2.png

Finally, you need to reference the JVM you need in the Libraries tab, in your Java Build Path properties of your Java project (as mentioned by Steve in his answer):

alt text http://img52.imageshack.us/img52/5947/eclipseinstalledjre3.png

like image 200
VonC Avatar answered Sep 19 '22 23:09

VonC


It seems, that your project doesn't have the JVM in it's Build Path.

Right-Click on your project. Choose Build Path --> Add Libraries.... Take JRE System Library and choose a JVM for your project.

like image 20
Steve Avatar answered Sep 20 '22 23:09

Steve