Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Solved]Error With setupDecompworkspace at recompile phase [Gradle/Eclipse]


spazzmods
 Share

Recommended Posts

* What went wrong:
Execution failed for task ':recompileMc'.
> Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre1.8.0_91"

 

However straightforward that error is, my pathing is spot on(windows 10):

C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Java\jdk1.8.0_91\bin;C:\Program Files (x86)\Java\jre1.8.0_91\bin

 

And I've already restarted a few times just in case.

 

SOLUTION:

Create a JAVA_HOME path and path it to the JDK.

Thank you @Choonster

Link to comment
Share on other sites

Set the

JAVA_HOME

environment variable to the path of your JDK.

 

In Windows 10, you can do this by searching for "environment variables" in the Start menu.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

So, because it didn't actually exist that was one of the things I needed to add into the variables completely. like this:

 

K1J47Kw

 

is that correct?

Yes.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

  • 4 weeks later...

I have the same problem, but even after downloading the jdk- 8u101 from Oracle, and directing the Environment Variable JAVA_HOME to it, it still says "Build Failed!"

 

Execution failed for task ':makeStart'.

> Unable to find a javac compiler;

com.sun.tools.javac.Main is not on the classpath.

Perhaps JAVA_HOME does not point to the JDK.

It is currently set to "C:\Program Files\Java\jre1.8.0_91"

Link to comment
Share on other sites

I have the same problem, but even after downloading the jdk- 8u101 from Oracle, and directing the Environment Variable JAVA_HOME to it, it still says "Build Failed!"

 

Execution failed for task ':makeStart'.

> Unable to find a javac compiler;

com.sun.tools.javac.Main is not on the classpath.

Perhaps JAVA_HOME does not point to the JDK.

It is currently set to "C:\Program Files\Java\jre1.8.0_91"

 

Just like the OP, you've set

JAVA_HOME

to the JRE path instead of the JDK path.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.