Axis Camera Sample Error

I’m trying to run the Axis camera sample with a configured M1013. When I deploy the code, the build fails and I get the following message:

C:\Users\ScotBot4284\wpilib\java\current\ant\build.xml:135: Unable to find a javac compiler; 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_121”

I’ve tried uninstalling the JDK and reinstalling it in the default path, but I got the same output. What can I do to get it running? Thanks!

Your JAVA_HOME environment variable is incorrect. It’s pointing at a JRE, not a JDK

Read this for instructions

Follow the Setting up the JDK in eclipse part.