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:

BUILD FAILED
C:\Users\ScotBot4284\wpilib\java\current\ant\build.xml:135: 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_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

http://wpilib.screenstepslive.com/s/4485/m/13503/l/599679-installing-eclipse-c-java

Follow the Setting up the JDK in eclipse part.