IntelliJ IDEA can't setup JDK

2019-01-30 13:44发布

I'm trying to setup JDK in IntelliJ IDEA and whatever I do, or whatever JDK version I select, nothing happens. The following situation remains: enter image description here

So I told IDEA what JDK it should use, but it still asks me to setup a JDK. Is this a bug or am I missing something? Can I apply any workaround to make everything work as usual?

ADDITION

The steps which I go through setting up the JDK: situation before setting up:
enter image description here

the first step:
enter image description here

the second step:
enter image description here

the third step:
enter image description here

the situation after setting up JDK: enter image description here

SDKs:
enter image description here

module settings:
enter image description here

7条回答
Root(大扎)
2楼-- · 2019-01-30 14:39

For someone like me, looking for a way to setup an offline documentation in IDEA on UBUNTU Linux. You should install the openjdk-8-doc (or openjdk-X-doc in general case) package, then go to File|Project Structure|SDKs|1.8(still 1.X in general), then select tab Documentation Paths and add the path /usr/lib/jvm/java-1.8.0-openjdk-amd64/docs/api there.

Note, that path of Java docs installation may differ on your machine. You are able to check the path of Java docs installation executing dpkg-query -L openjdk-8-doc | less in a shell.

查看更多
登录 后发表回答