Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HELP #892

Open
BallisticOK opened this issue Aug 23, 2020 · 1 comment
Open

HELP #892

BallisticOK opened this issue Aug 23, 2020 · 1 comment

Comments

@BallisticOK
Copy link

FAILURE: Build failed with an exception.

  • 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_251"

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

@madelynwith5ns
Copy link

madelynwith5ns commented Sep 15, 2020

Your JAVA_HOME variable isn't pointing at a JDK. Its pointing to a JRE. (Java Development Kit v.s. Java Runtime Environment)

You need to set your JAVA_HOME to a jdk and if you do not have a JDK installed you should install one from the java website. Just search JDK download.

Then look up a tutorial on how you change environment variables on your operating system (i.e. Windows or Ubuntu or MacOS). Then try again.

EDIT: Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants