Dear Rafael<br><br>I use javac/java in my project. <br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">Compiles with javac (1.5.0-8) but won't run:
<br><br>[endless@localhost ~]$ javac -cp ${CLASSPATH} Hello.java<br>[endless@localhost ~]$ java Hello<br>Exception in thread "main" java.lang.NoClassDefFoundError: Hello<br>[endless@localhost ~]$<br></blockquote>
<br>I have the same problem with one of my projects when I've tried to include commons-logging in the classpath.<br>I got the error - my main class was not found. (Despite it works perfectly in my IDE)<br>I made it work by packaging all classes in jar file and including classpath into manifest.
E.g. ...<br><br><span style="font-style: italic;">Manifest-Version: 1.0</span><br style="font-style: italic;"><span style="font-style: italic;">...</span><br style="font-style: italic;"><span style="font-style: italic;">Class-Path: /usr/kde/3.5/lib/java/qtjava.jar
</span><br><br>My program worked, but when I try to run your example I get<br>java.lang.NoClassDefFoundError : org/kde/qt/QMainWindow<br><br>Cheers<br>Polly<br><br><br><br><br>