No java project option in eclipse

前端 未结 7 1043
遇见更好的自我
遇见更好的自我 2021-02-07 18:11

There may well be a very simple answer to this but having googled for an hour, I am resorting to asking here.

I am simply trying to install eclipse Indigo(3.7.2) on Ubun

相关标签:
7条回答
  • 2021-02-07 18:21

    these both commands completely solved the problem for me:

    sudo apt-get install --reinstall eclipse-jdt

    sudo apt-get update

    0 讨论(0)
  • 2021-02-07 18:25

    Same as @thiagowfx answered, just need to add * in last commant

    sudo apt-get remove eclipse*
    sudo apt-get purge eclipse*
    rm -r ~/.eclipse*
    rm -r workspace*
    

    Then install the eclipse

    sudo apt-get install eclipse
    
    0 讨论(0)
  • 2021-02-07 18:27

    I had the same problem and found out it was because I had installed another version of eclipse which I had downloaded manually. I simply removed the package again ("sudo apt-get remove eclipse") and deleted everything concerning eclipse:

    • ~/.eclipse
    • ~/workspace
    • everything that showed up on "whereis eclipse"

    and then reinstalled it using "sudo apt-get install eclipse". Worked fine for me.

    0 讨论(0)
  • 2021-02-07 18:29

    I was with the same problem. Try doing that:

    sudo apt-get update && sudo apt-get upgrade
    
    sudo apt-get remove eclipse
    sudo apt-get purge eclipse
    rm -r ~/.eclipse
    sudo apt-get install eclipse
    

    I didn't need to remove all the locations which showed up on whereis eclipse, like Steve Beer said.

    Besides, you can also try doing

    sudo apt-get install --reinstall eclipse-jdt
    

    if the previous commands don't work out.

    0 讨论(0)
  • 2021-02-07 18:29

    I had the same issue and was able to resolve it in deleting the entire ~/.eclipse directory along with everything in the workspace of eclipse. When I started eclipse after this, it was again possible to add java projects.

    0 讨论(0)
  • 2021-02-07 18:31

    Make sure that the JDK is installed. sudo apt-get install openjdk-7-jdk

    also make sure that the installer is up to date : sudo apt-get update , sudo apt-get upgrade

    You have another option. Try downloading eclipse from the Eclipse website www.eclipse.org

    download the appropriate version for your machine and try running it from the command line directly yourDownloadPath/eclipse

    • Don't forget to add the executable permission(chmod +x) if necessary

    Good luck.

    0 讨论(0)
提交回复
热议问题