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

jdk1.2beta3: appletviewer conflict with jar file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P5 P5
    • None
    • 1.2.0
    • tools


      Using "JDK-1.2beta3-N", on Solaris, can't run the applet when invoking "appletviewer SwingApplet.html" from the demo/jfc/SwingApplet directory AFTER removing the SwingApplet.class

      Appletviewer throws the following exception while running swing applet with SwingApplet.jar file alone. It works fine, when run with the associated SwingApplet.class file.

      To reproduce:
      copy JDK1.2beta3-N SwingApplet in /tmp.
      cd /tmp/SwingApplet
      appletviewer SwingApplet.html

      Appletviewer works fine with SwingApplet.html as long as SwingApplet.class exist.

      Now remove the SwingApplet.class in /tmp/SwingApplet, then run Appletviewer, it throws the following exception:

              at java.awt.swing.JApplet.createRootPane(JApplet.java:123)
              at java.awt.swing.JApplet.<init>(JApplet.java:97)
              at SwingApplet.<init>(SwingApplet.java:30)
              at java.lang.Class.newInstance(Native Method)
              at sun.applet.AppletPanel.createApplet(AppletPanel.java:459)
              at sun.applet.AppletPanel.runLoader(AppletPanel.java:395)
              at sun.applet.AppletPanel.run(AppletPanel.java:234)
              at java.lang.Thread.run(Thread.java:490)

            iris Iris Clark
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: