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

Win32: Incorrect codebase path for local file URL's with fully qualified path

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.0beta2
    • CPU:
      x86
    • OS:
      windows_nt
    • Verification:
      Verified

      Description

      Win32: Appletviewer sets incorrect codebase path for local file URL's with fully qualified
      path to the Html document, instead it gives error message. Works fine on Solaris.

      Error message:
      Thread-1 find class ArcTest
      Opening stream to: file:/C://ArcTest.class to get ArcTest
      java.io.FileNotFoundException: \\C:\\\\ArcTest.class
      at java.io.FileInputStream.<init>(FileInputStream.java:54)
      at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:67)
      at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:74)
      at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:65)
      at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:160)
      at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:122)
      at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:101)
      at sun.applet.AppletPanel.run(AppletPanel.java:232)
      at java.lang.Thread.run(Thread.java:286)
      status: load: class ArcTest not found
      load: class ArcTest not found
      java.lang.ClassNotFoundException: ArcTest
      at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:125)
      at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:101)
      at sun.applet.AppletPanel.run(AppletPanel.java:232)
      at java.lang.Thread.run(Thread.java:286)
      status: init: applet not loaded
      status: start: applet not initialized

      Steps to reproduce:
      CD to some directory other than a JDK demo directory
      run appletviewer <fully qualified path>\\java\\demo\\ArcTest\\example1.html
      // note error message:

        Attachments

          Activity

            People

            Assignee:
            dconnellsunw David Connelly (Inactive)
            Reporter:
            kasmithsunw Kevin Smith (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: