I am trying to make NativeJ load MyApp.class, but I can seem to do so. How do I add MyApp.class to the CLASSPATH?
Typically, you should package MyApp.class into a jar file, and add the jar file to the CLASSPATH. You can find more information about creating jar files here. However, if for some reason you only wish to use the class file, you can add a single period “.” to the CLASSPATH, in which case NativeJ will look for class files under the same directory as the EXE.