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 180464

Summary: Add jnlp.jar to the compile classpath when WebStart mode enabled
Product: projects Reporter: David Strupl <dstrupl>
Component: Java WebstartAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description David Strupl 2010-02-09 02:42:21 UTC
The JNLP APIs contained in the jnlp.jar should be accessible during compilation of project when web start is enabled. BUT the jar should not be packaged with the application since the classes are contained in the javaws.jar during the deployment.
Comment 1 Tomas Zezula 2010-03-03 06:16:43 UTC
jet-main 3dda7118db91
Comment 2 Tomas Zezula 2010-03-03 06:24:23 UTC
From off line description:
Plugin will always add to bootclasspath plugin.jar, deploy.jar and javaws.jar.
However, to develop FX applet users have to add them manually if they are trying to use any of their public APIs
(e.g. JNLP services). This is unneded complication and moreover result JNLP files will include these extra .jar files
and files will be copied to the dist directory. This should not be done.

It will be much more convinient if NB will automatically add these jars to classpath as soon as user switch project properties to be applet
or webstart (for webstart mode only javaws.jar and deploy.jar need to be added). These jars should only be referenced for compile time
and should not be copied to the dist directory, attempt to execute  JNLP application or applet will pick them automatically.
They should not also be referenced from the manifest in the main jar.
Comment 3 Quality Engineering 2010-03-03 22:09:39 UTC
Integrated into 'main-golden', will be available in build *201003040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3dda7118db91
User: Tomas Zezula <tzezula@netbeans.org>
Log: #180464:Add jnlp.jar to the compile classpath when WebStart mode enabled