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.
[NB5.0, jdk 1.5; behavior is little bit different on jdk6 because it contains SwingLayout library] 1.Create j2se project 2.Create new JAppletForm with name "MyApplet" 3.Build project 4.Select MyApplet in projects view and invoke Run action on it 5.In build/classes there appears MyApplet.html, but when this file is viewed by browser outside of NetBeans it fails with java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group (on java6.0 it works because it contains GroupLayout). The second problem of the concept is that the MyApplet.html is deleted when the project is rebuilt and recreated when Run is invoked on MyApplet.java. The third problem is that the MyApplet.html should be created in dist/ folder of the project and user must be able to run applet by its viewing in browser because dist/ folder is the common place of deployed project.
This issue has two parts. The applet requires correct code base attribute with swinglayout.jar. The second part is that the html file is created into build folder, it should be generated into the dist folder with some reasonable unique name (fqn of applet class?)
I think that the layout library should be defined by archive attribute, like this: <APPLET archive="JavaApplication1.jar,lib/swing-layout-1.0.jar" code="javaapplication1/NewJApplet.class" width=350 height=200> </APPLET> and the applet will be created under dist folder with name javaapplication1-NewJApplet.html as Tomas suggested.
Not widely used I guess.
Not for 6.0
Since JDK1.6U10 resurrects applets, let's try to fix this.
Better support for Applet as well as support for Applet with jnlp (Mustang) is required.
The test applet page is not intended to be used externally. Please use the JNLP base applet deployment. Project Properties/Web Start. After turning on and clean & build it generates launch.html in dist folder which uses deployJava.js and JNLP file to start the applet.