Using IcedTea Web-browser Plug-in with AdoptOpenJDK.

When Java went Open, the whole of Java developer community was like “whoo hooo!”, and everyone has been embracing OpenJDK with wide open arms. The AdoptOpenJDK community took the lead in making users life easier by providing prebuilt OpenJDK binaries from a fully open source set of build scripts and infrastructure.

However, the Java WebStart Wizard used to create the XML-based JNLP (Java Network Launching Protocol) definition file, that the Web Start software uses to download and run Java applications and applets on client machines was not Open Sourced as part of OpenJDK.

Thankfully the GNU Classpath community come up with a free software implementation of Java Web Start and the Java web browser plugin for running applets and thus our hero IcedTea-Web was born.

We have produced a short slide deck @Running Web Start Application
And a video @ Setting up AdoptOpenJDK with IcedTea-Web showing you how to get the IcedTea WebStart plugin working with AdoptOpenJDK binaries.

Voila!! Go ahead and run your WebStart applications to your heart’s content.

5 thoughts on “Using IcedTea Web-browser Plug-in with AdoptOpenJDK.”

  1. @Divi_Dv02 and Eli Abramson :
    Could you please give more information on what your case is? I recently got to work on another person who was unsuccessful in launching the Java applets, he had an exception preventing him from launching the exception:

    java.lang.reflect.InvocationTargetException
    at java.awt.EventQueue.invokeAndWait(EventQueue.java:1349)
    at java.awt.EventQueue.invokeAndWait(EventQueue.java:1324)
    at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1353)
    at net.sourceforge.jnlp.runtime.AppletEnvironment.startApplet(AppletEnvironment.java:191)
    at net.sourceforge.jnlp.Launcher.launchApplet(Launcher.java:652)
    at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:943)
    Caused by: java.lang.IllegalMonitorStateException
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:502)
    at exc.com.GUtil.abort(Unknown Source)
    at exc.fe.FeLaunch.b(Unknown Source)
    at exc.fe.FeLaunch.start(Unknown Source)
    at net.sourceforge.jnlp.runtime.AppletEnvironment$2.run(AppletEnvironment.java:199)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

    I confirmed, we will need to raise an IcedTea-web bug for this issue.

    Step-by-step guide on how to run applets on IE using IcedTea-Web and Adopt OpenJDK:
    There are 2 ways to run your Applet (if you are on Windows by default it’ll run on IE) ..
    [After you have set your Path- add the Java Home, give your browser path as well ]
    a) Directly in the browser address, access your.jnlp and “Open With” IcedTea webstart.
    b) On command prompt run: javaws your.jnlp

    If the applets are not launching, you could start the Control panel, ie, run : itweb-settings.bat, under “Debugging” – Enable Debugging, this will give you the reason why your applet has failed to start, share that exception with us and we’ll see how we can help further.

    Thanks!

  2. I did try these 2 resources but I’m not able to run my Java applets on IE using IcedTea-Web and Adopt OpenJDK. These resources weren’t much helpful. Can you please provide us with a step-by-step guide on how to run Java Applets on Internet Explorer using AdoptOpenJDK and IcedTea-Web.

  3. These 2 resources aren’t much helpful. I want to run Java Applets on Internet Explorer. I tried the steps mentioned here but they didn’t work. Can you please provide us with a step-by-step guide on how to run applets on IE using IcedTea-Web and Adopt OpenJDK

    1. Hi there,

      Are you able to join our slack at adoiptopejdk.net/slack.html and we’ll try to connect you with the right expert.

Leave a Reply