Search code examples
javaeclipsemavenbuildpath

Issues with Eclipse setup on Ubuntu 12.04


I am facing setup issues in my eclipse Kepler on Ubuntu 12.04 on Virtual box.

Firstly i was facing issue same as: Eclipse Open declaration in Java project I tried everything mentioned here, but nothing seems to be working for me...

Then I explored some more, and get another error message similar to: I am getting resource not on the buildpath of the project As per its 1st answer, 2nd point go to "Java Build Path", I tried going there, but i cannot find any "Java Build Path" section in my project property.

When I click on Project properties, it shows only options given in the following screenshot:

enter image description here

I know this is some easy setup issue, but i am unable to handle it.


Solution

  • The answer is a write-up of the discussion in the comments:

    If you are on Ubuntu 12.04 and install Eclipse you could end up with a bare-bones install without the Java Development Tools (JDT).

    After installing the package manually via Help -> Install New Software and then searching for Programming Languages / Eclipse Java Development Tools Java development should work.

    For maven projects you should use the import Existing Maven Projects instead of importing it as a java project.