Could not determine Java version using executable C:\\Program Files\\Java\\jdk-10.0.1\\bin\\java.exe.
This error appeared when I tried to create a new project in Int
Solution summary:
jdk
(s) from intelliJ
A full demonstration is given below for intelliJ
in ubuntu 18.04.1
fig1: Installing openjdk-8
.
fig2: Adding jdk8 to Project Structure. Click +
button then choose JDK
. Now choose JDK home path
to jdk8. Mine was, as you can see from fig3, /usr/lib/jvm/java-1.8.0-openjdk-amd64
fig3: openjdk-8 is added to intelliJ
. [a:] Time to remove newer versions of jdk
from intelliJ
.
fig4: Select 10
(notice that the JDK home path
contains java-1.11.0-openjdk-amd64
) and press -
button to remove 10
.
fig5: after removal of jdk-10
select jdk-8(named 1.8
in fig5) and press ok
.
fig6: Now go to File
->Settings
->Build, Execution, Deployment
->Build tools
->Gradle
->Gradle JVM
and choose the same path that you have set as JDK home path
while adding 1.8
in Project Structure
and press Ok
. Click Build
and choose Make new module app
and the app module should be created. Now if pressing Run
and choosing app
module gets your app running, you have a good day :) and if not, recheck activities mentioned in fig3[a] & fig6 once.