9

Has anyone had any success using JDK 16 (https://jdk.java.net/16/) early access build with IntelliJ?

I am able to use JDK 15 early access builds, but when I try JDK 16 I get an error message:

Error: Cannot determine path to 'tools.jar' library for 16 (path/to/jdk-16)

All of the research I've done says JDK stores tools.jar inside of the path/to/jdk-16/lib folder. Thing is, tools.jar isn't there in the JDK 15 package either, yet JDK 15 works fine.

If anyone has any clue on how to fix this issue I'd appreciate it. I'm still trying, and if I figure it out I'll update this post.

Thanks in advance.

ZhekaKozlov
  • 36,558
  • 20
  • 126
  • 155
NotArchon
  • 125
  • 1
  • 6
  • 4
    There is no `tools.jar` since JDK 9. So when IntelliJ works with JDK 15, it must be aware of this. Then, failing with JDK 16 indicates that this is another case of stup… ahem, broken version comparison. – Holger Jul 02 '20 at 09:59

3 Answers3

12

There was an issue: IDEA-243962. It is fixed now in 2020.2 version. EAP version is already available here.

Andrey
  • 15,144
  • 25
  • 91
  • 187
0

How to Solve IntelliJ IDEA Error: Cannot determine path to ‘tools.jar‘ library for 17 (C:\Program Files\Java\jd… open file

enter image description here

improve the version of IntelliJ idea. enter image description here

update ide then try rerun

source for details: enter link description here

Omer CANGA
  • 31
  • 2
-3

I downgraded my Java from 15 to 11. Now it is working fine. (IntelliJ Idea 2020.1)