Error in eclipse

1

I installed and configured java jdk 9.0.1 and also eclipse as java ide in eclipse when I create the project gives me error

And as soon as I start typing "System.out.println" this error window appears

How can I resolve this? Thanks

    
asked by anonymous 24.10.2017 / 14:56

1 answer

2

As you know, Java 9 still needs a lot of tweaking, and development environments also need to be prepared to receive these tweaks.

When I installed Java 9 on my Ubuntu I also encountered several difficulties, so I followed this tutorial: Configure Eclipse for Java 9 .

One important note is that you need to configure your environment variable, both in Linux and Windows. In iOS I do not know ... I have no support in this OS.

The Eclipse that will work is only the Oxygen version . Only this version has Java 9 support.

Now let's go!

First step: Install Java 9 JDK

To download the installation file, click on this link! As the focus is not setup but JDK configuration, let's go to the next point ...

Step Two: Configuring the Environment Variable in Windows 10

There are cases where the Windows operating system already recognizes automatically. But in my case, on the contrary, I need to resolve manually by accessing the advanced OS settings and pointing the Java 9 installation path to the PATH variable.

  • In the windows window, right-click on the start menu button, and go to System
  • Now go to System Information
  • Click on change settings now
  • Click the Advanced tab
  • Click Environment Variables
  • Under system variables, search for the variable Path
  • Click edit
  • Find the Java 9 installation path Generally, in Windows it looks like this: c: \ ProgramData \ Oracle \ Java \ javapath
  • This path - which may be another like I said, but in most cases this is - needs to be pointed to in your environment variable.
  • Confirm everything!

    Now, to see if it's working, you can create a class in Java with a main and make a classic "Hello World"!

    I hope I have contributed!

        
    24.10.2017 / 16:16