JDK-6706370 : DragExample.jnlp won't run in 6u10 plugin release notes
  • Type: Enhancement
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u10
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2008-05-22
  • Updated: 2010-04-09
  • Resolved: 2009-01-14
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_10-beta"
Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b24)
Java HotSpot(TM) Client VM (build 11.0-b12, mixed mode, sharing)


ADDITIONAL OS VERSION INFORMATION :
Ubuntu 8.04 (hardy) x86 desktop

A DESCRIPTION OF THE PROBLEM :
draggable applet (jnlp) won't relaunch from desktop icon

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Install demo applet from https://jdk6.dev.java.net/plugin2/#EXPERIMENTAL_FUNCTIONALITY, then drag applet from browser, then close original browser page to trigger creation of desktop icon (jnlp).

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Same applet running standalone as that runs with browser (Firefox 3)
ACTUAL -
Desktop jnlp won't run, see error below:

ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.lang.NoClassDefFoundError: netscape/javascript/JSException
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
	at java.lang.Class.getConstructor0(Class.java:2699)
	at java.lang.Class.newInstance0(Class.java:326)
	at java.lang.Class.newInstance(Class.java:308)
	at com.sun.javaws.Launcher.executeApplet(Launcher.java:1182)
	at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1114)
	at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:965)
	at com.sun.javaws.Launcher.run(Launcher.java:121)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: netscape.javascript.JSException
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:257)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	... 10 more

REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION not reproduiclbe with 6u14 b01. The fix to 6740227 in 6u12 has addressed this. Close as a duplicate.
14-01-2009

EVALUATION This failure indicates that the desktop integration feature of Java Web Start (the LocalInstallHandler) is not working completely correctly on Unix desktops and is related to 6694453 and 6694471. com.sun.javaws.Launcher should not be used to re-execute shortcuts for applets that were dragged out of the browser; the new plug-in's JNLP2Viewer should be. This is what happens with the desktop shortcuts on Windows.
22-05-2008