This problem never happened before but here it is.... I seem to have aproblem running my java .class files. here it the output[daddius@logic Desktop]$ java HellHelloWorldApp.class HelloWorldApp.java[daddius@logic Desktop]$ java HelloWorldAppException in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp[daddius@logic Desktop]$now I know the for a fact that that HelloWorldApp.class file is therebut I keep getting a java.lang.NoClassDefFoundError. I also installedthe GCJ compiler for GCC to see if it would actually work.. But whyshould this mess with java? What could be causing this problem?please help somone
Check the CLASSPATH variable and make sure that "." is part of theclasspath.Also make sure that the java being run is from the appropriate JDK(i.e., if the class uses 1.4 features, make sure it is being run withthe java from the JDK 1.4).