Java 10 Mac won't start up

Answered

Today I update to java 10. Changed the JDK that Intellij uses but on it won't start.

Before I changed the JDK everything worked just fine.

 

For two hours it has been showing only this :/ https://puu.sh/zWL6e/cbb1e70bda.png

 

I have tried removing the caches, reinstalling, newer version (2018.1.1 RC), older version (2017.3.5)

1
9 comments

fixed it by deleting idea.jdk

0

Isn't still compatible with JDK 10 ?

 

When I use watch expression in Debug window with Java 10 project, InteliJ says "Unable to compile for target level 10. Need to run IDEA on java version at least JDK_10, currently running on JDK_1_8".

I tried to switch InteliJ boot JDK to Oracle JDK 10.0.2, but it freeze in splash screen as same as original post of this thread.

0

Hi.

It is not related to boot JDK, you need to switch project SDK at File | Project Structure | Project. Also, set language level to 10.

0

Hi, thank you for response.

 

I confirmed Project Structure and my project is using Oracle JDK 10, and language level of the module is 10.

But watch expression still says "Need to run IDEA on java version at least JDK_10".

 

When I change my project SDK to JDK 8, watch expression works.

Thus I believe that problem is JDK 10 compatibility of IDEA.

 

Detail of my environment:

- InteliJ IDEA CE 2018.2

- Boot JDK: IDEA bundled JDK (1.8.5_152-b8)

- JDK for my project

    - Oracle JDK 10.0.2 (watch expression says "Unable to compile for target level 10. Need to run IDEA on java version at least JDK_10, currently running on JDK_1_8")

    - Oracle JDK 1.8.0_152 (watch expression works well)

- Language level of my project: 10

- Language of my project: Kotlin

0

Could you please provide a project example to reproduce a problem?

0

@Saiya-V6 Did you find a solution? We're seeing the same thing.

0

From Intellij, I used 'Change Intellij boot SDK' after which I selected JDK10. 

After that, Intellij no longer starts. I'm seeing the same as above screenshot.

 

Solved: Thanks to Petr's comment below. On OSX, I simply changed the contents in ~/Library/Preferences/IntelliJIdea2018.2/idea.jdk

0

Please sign in to leave a comment.