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 132807 - webstart on sample projects fail
Summary: webstart on sample projects fail
Status: VERIFIED FIXED
Alias: None
Product: usersguide
Classification: Unclassified
Component: JavaFX (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Michal Skvor
URL:
Keywords: RELNOTE
Depends on:
Blocks:
 
Reported: 2008-04-14 21:39 UTC by Lark Fitzgerald
Modified: 2008-07-15 19:23 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 Lark Fitzgerald 2008-04-14 21:39:00 UTC
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.
Comment 1 Lark Fitzgerald 2008-04-14 21:49:49 UTC
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.
Comment 2 Michal Skvor 2008-04-15 10:52:51 UTC
Creating of Webstart has been disabled.
Comment 3 Andrey Yamkovoy 2008-04-15 15:26:15 UTC
misk what do you mean?
Comment 4 Lark Fitzgerald 2008-04-15 16:35:40 UTC
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)

Comment 5 Lark Fitzgerald 2008-04-15 16:47:20 UTC
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.
Comment 6 Lark Fitzgerald 2008-04-28 17:09:35 UTC
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.
Comment 7 Lark Fitzgerald 2008-07-14 14:58:33 UTC
*** Issue 136952 has been marked as a duplicate of this issue. ***
Comment 8 Michal Skvor 2008-07-15 14:29:59 UTC
Fixed.
Comment 9 Lark Fitzgerald 2008-07-15 19:23:16 UTC
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