Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6978684

Plugin-DND:Can't launch the applet from javaws when main-class is mis-specified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 6u18, 6u21
    • deploy
    • b130
    • x86
    • windows_xp, windows_vista
    • Verified

      Steps to reproduce:
      1. Launch "http://sqindia.india.sun.com/disk17/deployment/raghu/JNLPSupport/JAWSServices/html/JNLPFileServices.html
      "
      2. Press ALT+Left mouse,Drag and drop in Desktop in desktop.
      3. Close the browser.
      4. Accept the request for short cut creation.
      5. Launch the Applet from desktop shortcut.

      #Actual behavior:
      Can't launch the applet with a shortcut

      #Expected behavior:
      Applet should launch with shortcut and pass

      #Fail cause:
      JNLPFileServices.class didn't find into directory
      'http://sqindia.india.sun.com/disk17/deployment/raghu/JNLPSupport/JAWSServices/class'

      #Exception:
      java.lang.ClassNotFoundException: JNLPFileServices.class
              at java.net.URLClassLoader$1.run(Unknown Source)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(Unknown Source)
              at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
              at java.lang.ClassLoader.loadClass(Unknown Source)
              at java.lang.ClassLoader.loadClass(Unknown Source)
              at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
              at com.sun.javaws.Launcher.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)
      The applet only fails to run from java web start because main-class is specified as:
      main-class="JNLPFileServices.class" instead of "JNLPFileServices".
      The plugin is too lax and allows "JNLPFileServices.class" to run.

            herrick Andy Herrick (Inactive)
            qgong Fred Gong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: