Posted July 17, 20169 yr * 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
July 17, 20169 yr PATH is not JAVA_HOME . You have JAVA_HOME pointing to a JRE rather than a JDK. 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.
July 17, 20169 yr 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.
July 17, 20169 yr Author So, because it didn't actually exist that was one of the things I needed to add into the variables completely. like this: is that correct?
July 17, 20169 yr So, because it didn't actually exist that was one of the things I needed to add into the variables completely. like this: 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.
August 15, 20169 yr 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"
August 15, 20169 yr 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.
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.