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.
Product Version: NetBeans IDE Dev (Build 200804091204) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) Plugin61: CB#27 (2008-04-14_18-24-05_27.zip) Getting NoClassDefFoundError after enabling webstart with sample apps Steps: 1. install sample nbm 2. create sample project (doesn't matter which but I used color and linear gradient) 3. run the fx file (successful) 4. run the project (successful) 5. change the project to webstart enabled/and run with webstart Get exception java.lang.NoClassDefFoundError: com/sun/javafx/runtime/FXObject at java.lang.ClassLoader.defineClass1(Native Method) I checked and the dist directory is missing the signed lib files. I tried to copy them from another project but it detected that the libs had been signed by a different party.
Ah! I've changed the summary. I managed to get this project working by putting in a project with no spaces in the name. This will correctly generate the dist directory and run webstart.
Creating of Webstart has been disabled.
misk what do you mean?
This issue is larger than this: 1. It only seems to happen with the samples. Other projects created appear to work now. 2. Its not just spaces in path, its something inherent to samples. I though it worked because I created a project with no spaces but it was because I created a NEW project. The issue appears to be webstart related. For example, at the command line it says: C:\Users\Lark\Documents\NetBeansProjects\Easing\dist>java -jar "Easing.jar" input.Easing Failed to load Main-Class manifest attribute from Easing.jar I checked the property settings and input.Easing is the main class. When I try to run project (webstart) it from the ide I get this: java.lang.NoClassDefFoundError: com/sun/javafx/runtime/FXObject at java.lang.ClassLoader.defineClass1(Native Method)
To clarify. When I created a new app, I used the same source code from the sample that was failing, but it still worked so something about the samples project is incorrect so the lib files don't get generated.
This should really be fixed. After running the samples regularly, the next thing users will do is try to run them via webstart. Note: The workaround is to create a new project (same name and file structure and copy the contents from the original project into the new project. You can then run the new project as webstart.
*** Issue 136952 has been marked as a duplicate of this issue. ***
Fixed.
Verified using: Product Version: NetBeans IDE 6.1 (Build 200805300101) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) Installer build: NO fx NB61 continuous plugin: 364