https://docs.oracle.com/javase
for the most up-to-date documentation.applet-desc
element. For example:java
element and its version attribute. It supports the +
and *
operators, and you can even list out the exact version. Some examples follow:<java version='1.5+'/>
<java version='1.5*'/>
<java version='1.5.0_12+ 1.4.2_20'/>
jar
element.applet-desc
element contains all the applet's information such as applet parameters, width, height, etc. For more information regarding the applet-desc
element, refer to the JNLP specification, section 3.6.2, 'Application descriptor for an Applet.'applet-desc
tag, Java Web Start technology uses its own version of the applet viewer to start your applet.applet
class to the main
class of the application. The applet init
and start
methods are no longer present, instead, you should initialize the application at the beginning of the application's main
method.main
method to your original applet
class, and then start calling your applet initialization code where it normally gets called from the applet's init
and start
methods. Once there is a main
method in the applet
class, you can begin launching it by means of Java Web Start technology, and then slowly remove the dependency on the Applet
class and convert it completely to your application's main
class.JSObject
API (netscape.javascript.JSObject.*
) for Java to JavaScript communication does not work for Java Web Start applications.com.sun.java.browser.dom.*
and org.w3c.dom.*
) available for Java Plug-in applets are not available to Java Web Start applications.applet-desc
element, your applet will be created using the AppletContainer
provided by Java Web Start technology. When your applet calls Applet.getAppletContext()
, it returns the AppletContainerContext
provided by Java Web Start technology. There are some minor differences in implementation between the Java Plug-in AppletContext
and the Java Web Start AppletContext
. The differences are:PersistenceService
interface.AppletContext.showDocument(URL url, String target)
, the target argument will be ignored by Java Web Start technology.AppletContext.showStatus(String status)
, when launched with Java Web Start technology, this will set the JLabel
text that is below the applet, hosted by the Java Web Start AppletContainer
.AppletContext.showDocument
, Java Web Start applications are capabile of showing an HTML page using the system's default web browser by using the BasicService.showDocument
API.BasicService
interface.JNLPClassLoader
:OBJECT
tag in Java Plug-in technology, you can detect whether Java is avaliable on the client's machine with the Plug-in CLSID
and then auto-download Java if necessary. The same support is available with Java Web Start technology by using the Java Web Start CLSID
. For more information, see Ensuring the Presence of the JRE Software in the Java Tutorials.jar
and nativelib
elements) that are part of a single JNLP file. This simplifies user management since only one certificate must be presented to the user during a launch per JNLP file. If you need to use JARs signed with different certificates, you can put them in a component extension JNLP file, and reference it from the main JNLP file. For more details, refer to the JNLP specification, section 5.4 'Signed Applications' and section 4.7 'Extension Resources.'