Adding JAVA to Eclipse Oxygen

守給你的承諾、 提交于 2019-12-13 03:36:10

问题


I already installed java jdk 9 and Eclipse Oxygen on my pc. I've also added jdk url in environment variable path and created JAVA_HOME variable. I ran cmd and entered javac command, everything went fine.

1. Now, when I right click on a project > then go to Properties, I am redirected to Builders tab. I don't know where to add the JRE_SYSTEM_LIBRARY on my Eclipse Oxygen.

2. Also, when I want to create new project, by going to File > New, there's no suggestion to add a Java Project

3. When I go to Window > Preferences, there's no Java tab added below Install/Update tab.

Did I miss any step? Any help from you guys are much appreciated.


回答1:


It looks like you have the Eclipse for Testers (Jubula) IDE package without Java support or at least you're not in the Java perspective (depending on the perspective, there are different menus). If there is no File > New > Project...: Java > Java Project, do one of the following:

  • Download, install and use an Eclipse Java IDE package, e. g. the Eclipse IDE for Java Developers or the Eclipse IDE for Java EE Developers

  • Install the Java Development Tools (JDT) into your Eclipse for Testers IDE:

    1. Help > Install New Software...
    2. Work with: --All Available Sites-- (or Oxygen - http://download.eclipse.org/releases/oxygen)
    3. In the list choose Programming Languages > Eclipse Java Development Tools and click Next >
    4. After finishing the installation and restarting, switch to the Java perspective: Window > Perspective > Open Perspective > Others...: Java



来源:https://stackoverflow.com/questions/47391047/adding-java-to-eclipse-oxygen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!