#JAVA_INTERNAL

When the gradle JVM is specified as #JAVA_INTERNAL, How does IntelliJ determine which version of Java to use and where do I change that value on OS X 10.10.3?

Thanks,

Kurt

2 comments
Comment actions Permalink

Hi, Kurt,

#JAVA_INTERNAL value can not be used anymore in Gradle settings (<project_path>/.idea/gradle.xml of better File | Settings | Build, Execution, Deployment | Build Tools | Gradle | Gradle JVM).
It was wrongly included in one of our eap builds and fixed afterwards, if you find a way how the value appears in the settings using latest IDEA version, please let me know.
UPDATE: I've found related bug when #JAVA_INTERNAL value can be suggested by IDEA, see details at https://youtrack.jetbrains.com/issue/IDEA-138942

#JAVA_INTERNAL value resolution points to the JRE path of java which used by IDEA to run.
This was the reason, why #JAVA_INTERNAL can not be used for Gradle in IDEA, since gradle tooling API doesn't support JRE (related topic can be found on gradle forum at https://discuss.gradle.org/t/failed-to-connect-to-daemon-in-test-code).

The supported values for Gradle JVM setting are:


Thanks,
Vlad

0
Comment actions Permalink

Vadislav,

Thank you! This answer cleared up the whole thing for me and led to the solution of both of my problems and I'm up and running.

I'd like to suggest an improvement, how does the community do that.  Even if the #JAVA_INTERNAL issue is fixed, IDEA should be able to choose a default JDK to import new projects.  I'll put the details in https://devnet.jetbrains.com/message/5539027#5539027 where I have more of the supporting documents.

Regards,

Kurt

0

Please sign in to leave a comment.