The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: /home/ps/scratch/community-edition-ij/ij/bin/java

Answered

I want to learn how to write a custom language plugin with Intellij.

so far,

1. I downloaded community editon,

2. downloaded source code

3. created project sdk: intellij idea community edition IC-173.4127.27 (java version 1.8.0_131)

3. created a project (plugin project with gradle, and project sdk as the above)

and, when the project is opened, I see the above error in 'build Sync".

I opened a terminal and checked the following:

echo $JAVA_HOME

/usr/local/java/jdk1.8.0_131

and let me know what do you charge to train 2 engineers (remotely) on how to do custom language development in intellij.

 

3 comments

Could you please share idea.log ("Help | Show log ") using any file sharing service?

0

I will send the logs (need to figure out how). 

in the meantime, I see the following in log file.


2018-01-09 20:03:23,684 [ 15251] INFO - .BaseProjectImportErrorHandler - Failed to import Gradle project at '/home/ps/scratch/community-edition-ij/clojure-it/Clojure-Kit'
org.gradle.tooling.GradleConnectionException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.2-all.zip'.
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:55)
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:29)
at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:41)
at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:745)
at org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(BlockingResultHandler.java:46)
at org.gradle.tooling.internal.consumer.DefaultBuildActionExecuter.run(DefaultBuildActionExecuter.java:60)

 

 

dPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.gradle.internal.jvm.JavaHomeException: The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: /home/ps/scratch/community-edition-ij/ij/bin/java
at org.gradle.internal.jvm.Jvm.findExecutable(Jvm.java:158)
at org.gradle.internal.jvm.Jvm.getJavaExecutable(Jvm.java:182)
at org.gradle.internal.jvm.Jvm.forHome(Jvm.java:114)
at org.gradle.tooling.internal.provider.ProviderConnection.initParams(ProviderConnection.java:204)
at org.gradle.tooling.internal.provider.ProviderConnection.run(ProviderConnection.java:124)
at org.gradle.tooling.internal.provider.DefaultConnection.run(DefaultConnection.java:208)
at org.gradle.tooling.internal.consumer.connection.CancellableConsumerConnection$CancellableActionRunner.run(CancellableConsumerConnection.java:99)
at org.gradle.tooling.internal.consumer.connection.AbstractConsumerConnection.run(AbstractCons

0

What JVM is set for Gradle in "Settings | Build... | Build Tools | Gradle"?

0

Please sign in to leave a comment.