0

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.

Community
  • 1
  • 1
Shweta
  • 1,111
  • 3
  • 15
  • 30
  • 2
    Sounds like your project may not be a Java project - you should have Java Build Path, Java Code Style, Java Compiler, Java Editor, ... in the project properties if it is a Java project. – greg-449 Jul 22 '14 at 12:56
  • It is a java project only. Infact it is building fine from following command in terminal: mvn clean install -DskipTests – Shweta Jul 22 '14 at 15:30
  • 1
    Do you have the `JDT` installed in your `Eclipse` distribution? Sounds like you are using a naked install. – Andreas Jul 23 '14 at 07:35
  • @user3368154 Being able to run `maven` does not indicate that the project is an `Eclipse` project, did you try to create a new Java Project from scratch? – Andreas Jul 23 '14 at 07:37
  • @Andreas I tried installing jdt as per this https://wiki.appcelerator.org/display/guides2/Installing+the+Java+Development+Tools But i cannot find Eclipse JDT in Programming language tab – Shweta Jul 23 '14 at 08:28
  • @andreas, new project is giving all options like "java build path" etc... But still i dont know why it is not showing up in current project. I know people who are working on this project and for them it is working fine – Shweta Jul 23 '14 at 08:32
  • Did you use the "Existing Maven Projects" import when setting up the project? – Andreas Jul 23 '14 at 10:31
  • Thanks a tonn Andreas... Earlier when I was trying to import it as "Existing Maven Projects" it was giving some error... So i switched back to "import as normal java project". But on your question I again tried import as "Existing Maven Projects" and everything seams to be wroking now... :) – Shweta Jul 23 '14 at 11:26

1 Answers1

1

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.

Andreas
  • 5,251
  • 30
  • 43