Adding JAVA to Eclipse Oxygen

2019-08-24 02:00发布

问题:

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