Intellij thinks JDK is JRE?
Answered
I am getting error from Intellij when trying to add JDK dir,
"The selected dir points to a JRE, not a JDK"
But that's not true. It is a JDK. It has java and javac in the bin. It has a "jre" dir also below.
Why does it think its not a JDK? what is the criteria?
Please sign in to leave a comment.
Could you please provide the complete list of files in this JDK folder? Is there lib/tools.jar? What JDK version is that? What IDE version do you use?
Intellij 2020.1 community. There is no tools.jar in lib. So that's the issue?
$ ls -l
total 5406
drwxr-xr-x 1 U137223 1049089 0 Mar 20 08:58 bin/
drwxr-xr-x 1 U137223 1049089 0 Mar 20 08:58 include/
-rw-r--r-- 1 U137223 1049089 5217333 Mar 20 08:58 javafx-src.zip
drwxr-xr-x 1 U137223 1049089 0 Mar 20 08:58 jre/
drwxr-xr-x 1 U137223 1049089 0 Mar 20 08:58 lib/
-rw-r--r-- 1 U137223 1049089 44 Mar 20 08:58 LICENSE
-rw-r--r-- 1 U137223 1049089 159 Mar 20 08:58 README.html
-rw-r--r-- 1 U137223 1049089 169788 Mar 20 08:58 THIRDPARTYLICENSEREADME.txt
-rw-r--r-- 1 U137223 1049089 116400 Mar 20 08:58 THIRDPARTYLICENSEREADME-JAVAFX.txt
Yes, tools.jar is what makes JDK a JDK, not a JRE.
thank you so much,