Johnny Rocket
Johnny Rocket

Reputation: 1424

compiling code in netbeans

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}">

Upvotes: 1

Views: 1223

Answers (1)

duffymo
duffymo

Reputation: 308753

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.

Upvotes: 1

Related Questions