Keith.Abramo
Keith.Abramo

Reputation: 6955

Deploy JNLP applet *without* Next Gen Java Plugin

I need to deploy an applet on a .jsp page and want to take advantage of lazy loading and pack200 that you get when using JNLP. However my client does not have the Next Gen Java Plugin enabled on their machines and they do not want to enable it. This means I can not take advantage of the jnlp_href attribute introduced in java 1.6.10.

After some research I discovered you can specify an applet-desc in my jnlp but I am new to JNLP and do not know how to fully take advantage of this tag.

I have not seen any solid examples of how to use a JNLP file on a webpage without using the applet or object tags which require the jnlp_href param attribute.

Is it possible using this applet-desc tag to inject a reference to my JNLP in my .jsp page?

Currently I specify my applet using the object HTML element like this:

<object code="<myappletClass>" name="pdfapplet" codebase="<myCodeBase>" mayscript>
        <param name="jnlp_href" value="my-applet.jnlp"/>
</object>

However this does not grab the jnlp_href with Java plugin turned off in the Java console.

Upvotes: 1

Views: 1168

Answers (1)

Andrew Thompson
Andrew Thompson

Reputation: 168795

If the applet does not need to be embedded in the web page, it can be launched free-floating from the first versions of Java Web Start (available as a separate download around Java 1.2). It is only in the Next Generation JRE that a JWS deployed applet can remain embedded in a web page.

Upvotes: 1

Related Questions