Create new Java project, java preferences unavailable

160 views Asked by At

preferences screenI finished installing Eclipse 3.7.2 (Indigo) on my Ubuntu 12.04 system.

I am unable to have any options pertaining to either creating a Java project, running one as a Java project, can't find any of the Java preferences for JRE settings... There is no Java Development Toolkit in the Help section. I had all this earlier, I am not sure what changed. I am assuming that this has something to do with the SDK but have no other clue.

installed components

2

There are 2 answers

10
Georgian On BEST ANSWER

Install your preffered JDK, then go Preferences -> Java -> Installed JREs and point to the fresh install.

Also, check Preferences -> General -> Capabilities. Make sure you have Development selected.

2
John On

You might not have a system JRE installed. Press ctl + alt + T to open your Terminal and then try running:

sudo apt-get install default-jre

Note: this will install Java 1.7, if you want 1.6 then you have to specify that

Then in Eclipse, make sure you have your environment setup correctly.

If you want the official JavaDoc, here how to set it up:

How do I add the Java API documentation to Eclipse?

Here is a link to the JavaDoc that you can use in your preferences: