"createprocess error=193, %1 is not a valid win32" compiling error

Steve Berg's icon

Hey everyone. So, I'm trying to get my hands dirty in making some objects in Max/MSP via java. I've managed to create the JVM successfully (went through the trial and error of getting the right java version) but when I try to compile my test program (using the text editor that opens when clicking on a mxj object) using the compiler window, I get this error:
"
java.io.IOException: Cannot run program "C:\Program Files\Cycling '74\Max 8\resources\packages\max-mxj\java-classes\classes\firsttime.java": CreateProcess error=193, %1 is not a valid Win32 applicatio
n
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at com.cycling74.mxjedit.MXJEditCompileFrame.do_compile(MXJEditCompileFrame.java:349)
    at com.cycling74.mxjedit.MXJEditCompileFrame$3$1.run(MXJEditCompileFrame.java:150)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: CreateProcess error=193, %1 is not a valid Win32 application
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    ... 6 more
"
I've made certain that the compile target is correct and that my classpath is set up properly. From what I read, it may be an issue of the .java file not being a executable, but I'm not 100% sure. I run Windows 10 x64, for Max I have 8.0.0. Any feedback on this would be greatly appreciated as this is my first toe dip into writing externals. Thanks!!