1

I installed Java, but for some reason NetBeans wont compile my code, I am getting error:

C:\Users\Jay\Desktop\Key Stroke Project\nbproject\build-impl.xml:609: The following error occurred while executing this line:
C:\Users\Jay\Desktop\Key Stroke Project\nbproject\build-impl.xml:250: Error running ${platform.javac} compiler

Any ideas?

The line is:

target="${javac.target}" tempdir="${java.io.tmpdir}">

1 Answer 1

1

Open a command shell and type javac -version. You should see the version of Java you installed echoed back.

If the operating system complains about not being able to find the javac.exe command, then you need to add JAVA_HOME/bin to your PATH.

If you don't have a JAVA_HOME/bin, then perhaps you installed the JRE instead of JDK by mistake.

You may need to tell NetBeans how to find Java as well. I'm an IntelliJ user, so I can't be of much help there.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.