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.

Bug 162928 - Building file not possible
Summary: Building file not possible
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-17 13:43 UTC by martinhavle
Modified: 2009-04-17 18:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description martinhavle 2009-04-17 13:43:52 UTC
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)
Comment 1 martinhavle 2009-04-17 15:06:18 UTC
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?
Comment 2 Marian Mirilovic 2009-04-17 18:26:07 UTC
Jesse, 
feel free to reassign. I tried the same steps on Ubuntu, but it works without any problems ... 
Comment 3 Jesse Glick 2009-04-17 18:32:27 UTC
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.