OpenJDK 9 IntelliJ IDEA (Ubuntu) "Can't resolve Symbol"

Viewed 1722

I recently installed openJDK 9 under Ubuntu 17.10 and it seems like IntelliJ IDEA has trouble with it.

Whenever I create a new project IntelliJ can find the JDK, but it seems like it's not configuring it the right way. Here is how it looks like

Project Structure

when I create a HelloWorld.java example it looks like this

HelloWorld

and it says 'Can't resolve symbol 'String''.

Everything works fine when I compile via terminal and even with Eclipse.

When I type 'java --version' it says

openjdk 9-Ubuntu

OpenJDK Runtime Environment (build 9-Ubuntu+0-9b181-4)

OpenJDK 64-Bit Server VM (build 9-Ubuntu+0-9b181-4, mixed mode)

Is there a way to fix this problem?

1 Answers
Related