<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><blockquote type="cite">[?] compile and run java code [?] cannot find the class file [?]</blockquote></div><div><br></div><div>Do you have multiple sources?</div><div><br></div><div>The Compile & Run was initially done for just running a single Java file.</div><div><br></div><div>That said, the command does have some poor man?s build system support by allowing you e.g. to set TM_JAVA_FILEGLOB (presumably to ?*.java?) which would call the compiler with all the matches (rather than just the current one).</div><div><br></div><div>The alternative would be to set CLASSPATH if you have your class files somewhere. The proper solution though is to use a build system (when you?re doing more than just a quick test).</div></blockquote><div><br></div><br><div>No, it is only a single file. My wife is taking a beginner class in Java programming, and I am trying to set up a simple environment on our Mac in which she can do her homework. As she is using only very simple single files, and I want her to concentrate on the code and not the programming environment, I would like to enable her to simply press Command-R to compile and run the code. However, it appears that the system is not automatically creating the needed .class file, as shown in the complete output here:</div><div><div>Exception in thread "main" java.lang.NoClassDefFoundError: helloworld</div><div>Caused by: java.lang.ClassNotFoundException: helloworld</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>at java.net.URLClassLoader$1.run(URLClassLoader.java:202)</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>at java.security.AccessController.doPrivileged(Native Method)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at java.net.URLClassLoader.findClass(URLClassLoader.java:190)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at java.lang.ClassLoader.loadClass(ClassLoader.java:306)</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>at java.lang.ClassLoader.loadClass(ClassLoader.java:247)</div></div><div><br></div><div>Given all this, what is the best way to configure this poor man's compile-and-run environment?</div><div><br></div><div>I have installed the latest iteration of Netbeans IDE, but it is way too much for my wife, at least for the moment.</div></body></html>