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

UNC support in Classpath

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0, 1.2.2, 1.3.0
    • hotspot
    • generic, x86
    • generic, windows_nt



      Name: vi73552 Date: 07/28/99


      I am loading class files and the JVM across a network
      using the standard UNC in a .bat file for the path and classpath.
      Such as \\servername\directoryname.

      I am using a clean machine(s) Windows 9x with no JVM on it.

      When I launch the bat file, the JVM loads and scores of
      classes load from the rt.jar (I know this because I use the
      -verbose switch).

      However, the application fails because I get the error message:
      Execption in thread "main" java.lang.Error: can't load javax.swing.
      plaf.metal.MetalLookAndFeel
      (Review ID: 93163)
      ======================================================================

      Name: krT82822 Date: 09/27/99


      Set up CLASSPATH using UNC pathnames, e.g.,
      CLASSPATH:
        .
        \\gaa\c\TnG\packages\class
        \\gaa\c\ASG\Java\packages\class
        \\gaa\c\Apps\Sun\jdk1.2.2\lib\tools.jar
        \\gaa\c\c\Apps\Sun\jre1.2\lib\rt.jar
        \\gaa\c\Apps\Sun\jre1.2\lib\comm.jar
        \\gaa\c\Apps\Symantec\VisualCafe\bin\components\sfc.jar

      Now invoke the javac compiler. The compiler claims to be unable
      to find a resource bundle:

      Exception in thread "main" java.lang.Error: Fatal: Resource for javac is missing
              at sun.tools.javac.Main.initResource(Main.java:126)
              at sun.tools.javac.Main.getText(Main.java:152)
              at sun.tools.javac.Main.getText(Main.java:146)
              at sun.tools.javac.Main.getText(Main.java:142)
              at sun.tools.javac.Main.error(Main.java:99)
              at sun.tools.javac.Main.usage_error(Main.java:113)
              at sun.tools.javac.Main.compile(Main.java:455)
              at sun.tools.javac.Main.main(Main.java:733)

      Redefine the CLASSPATH using drive letters, e.g.,

        CLASSPATH:
        .
        c:\TnG\packages\class
        c:\ASG\Java\packages\class
        c:\Apps\Sun\jdk1.2.2\lib\tools.jar
        c:\Apps\Sun\jre1.2\lib\rt.jar
        c:\Apps\Sun\jre1.2\lib\comm.jar
        c:\Apps\Symantec\VisualCafe\bin\components\sfc.jar

      and the problem vanishes.

      Using UNC names does not appear to affect anything else.
      (Review ID: 95770)
      ======================================================================

      Name: skT88420 Date: 02/29/2000


      java version "1.2.2"
      Classic VM (build JDK-1.2.2-001, native threads, symcjit)

      I have modified the JVM system class loader so that URLs may be added to the
      CLASSPATH. This would allow an organization to place an item such
      as "http://intranet.domain.com/Java/" into the CLASSPATH of all client
      computers, and centrally manage all of the Java classes for the entire network
      on that web server.
      (Review ID: 101846)
      ======================================================================

      Name: skT88420 Date: 03/17/2000


      java version "1.2.2"
      Classic VM (build JDK-1.2.2-001, native threads, symcjit)


      The original diff I submitted caused the original file CLASSPATHs to not work.
      This fixes the bug I introduced, and is intended as a replacement for the
      original diff I submitted.

      My enhancement was also attached to bug #4258001. I have tested this bug
      against my code, and it appears to no longer be a problem.

      RELATED BUGS:
      4258001
      (Review ID: 102557)
      ======================================================================

            foliversunw Fred Oliver (Inactive)
            vasya Vassili Igouchkine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: