This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This occurs on build 200904170201 with jdk7 b54 with clean userdir. When creating new java application, edting few lines in main.java and trying tu run the main.java file, this error occurs and no build is actually performed: run: Error: Could not find main class javaapplication17.Main java.lang.NoClassDefFoundError: javaapplication17.Main at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:198) Caused by: java.lang.ClassNotFoundException: javaapplication17.Main at java.net.URLClassLoader$1.run(URLClassLoader.java:276) at java.net.URLClassLoader$1.run(URLClassLoader.java:265) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:264) at java.lang.ClassLoader.loadClass(ClassLoader.java:325) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:270) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:195) Exception in thread "main" Java Result: 1 BUILD SUCCESSFUL (total time: 0 seconds)
This also happens with JDK 6u14, so it seems to be a problem of IDE, not jdk. Running via windows command line works fine - maybe an issue of ant script?
Jesse, feel free to reassign. I tried the same steps on Ubuntu, but it works without any problems ...
Working fine for me. Perhaps a corrupt installation or some environmental issue. If you can better narrow down the problem or come up with a test case feel free to reopen.