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

java.library.path contains doublettes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.4.0
    • hotspot
    • x86
    • windows_nt



      Name: gm110360 Date: 10/09/2001


      D:\weinert\javaFactory>path
      PATH=C:\bat;D:\Programme\util;D:\Programme\jdk1.4\bin;C:\WINNT\system32;C:\WINNT


      D:\weinert\javaFactory>java -version
      java version "1.4.0-beta2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
      Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)

      D:\weinert\javaFactory>java ShowProps


       - - - Java - System - Properties - - -
      ShowProps V00.03 (13.12.00 11:16, A. Weinert)


      java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition
      sun.boot.library.path = D:\Programme\jdk1.4\jre\bin
      java.vm.version = 1.4.0-beta2-b77
      java.vm.vendor = Sun Microsystems Inc.
      java.vendor.url = http://java.sun.com/
      path.separator = ;
      java.vm.name = Java HotSpot(TM) Client VM
      file.encoding.pkg = sun.io
      user.country = DE
      sun.os.patch.level = Service Pack 6
      java.vm.specification.name = Java Virtual Machine Specification
      user.dir = D:\weinert\javaFactory
      java.runtime.version = 1.4.0-beta2-b77
      java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
      os.arch = x86
      java.io.tmpdir = C:\TEMPline.separator = (\n = ) 13 10
      java.vm.specification.vendor = Sun Microsystems Inc.
      user.variant =
      java.awt.fonts =
      os.name = Windows NT
      java.library.path =
          D:\Programme\jdk1.4\bin;.;C:\WINNT\System32;C:\WINNT;C:\bat;D:\Programme\uti
      l;D:\Programme\jdk1.4\bin;C:\WINNT\system32;C:\WINNT

      java.specification.name = Java Platform API Specification
      java.class.version = 48.0
      java.util.prefs.PreferencesFactory = java.util.prefs.WindowsPreferencesFactory
      os.version = 4.0
      user.home = C:\WINNT\Profiles\weinert
      user.timezone =
      java.awt.printerjob = sun.awt.windows.WPrinterJob
      file.encoding = Cp1252
      java.specification.version = 1.4
      user.name = weinert
      java.class.path = .
      java.vm.specification.version = 1.0
      sun.arch.data.model = 32
      java.home = D:\Programme\jdk1.4\jre
      java.specification.vendor = Sun Microsystems Inc.
      user.language = de
      awt.toolkit = sun.awt.windows.WToolkit
      java.vm.info = mixed mode
      java.version = 1.4.0-beta2
      java.ext.dirs = D:\Programme\jdk1.4\jre\lib\ext
      sun.boot.class.path =
          D:\Programme\jdk1.4\jre\lib\rt.jar;D:\Programme\jdk1.4\jre\lib\i18n.jar;D:\P
      rogramme\jdk1.4\jre\lib\sunrsasign.jar;D:\Programme\jdk1.4\jre\lib\jsse.jar;D:\P
      rogramme\jdk1.4\jre\lib\jce.jar;D:\Programme\jdk1.4\jre\lib\charsets.jar;D:\Prog
      ramme\jdk1.4\jre\classes

      java.vendor = Sun Microsystems Inc.
      file.separator = java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
      sun.cpu.endian = little
      sun.io.unicode.encoding = UnicodeLittle
      sun.cpu.isalist =
          pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386


      As can be seen from the above screenshot

      java.library.path =
          D:\Programme\jdk1.4\bin;.;C:\WINNT\System32;
      C:\WINNT;C:\bat;D:\Programme\util;D:\Programme\jdk1.4\bin;
      C:\WINNT\system32;C:\WINNT

      the system property java.library.path contains three doublettes.
      (With 1.3.1 there were two.)

      I think, that's no serious bug.
      But it may cause an unnecessary performance loss by
      searching directories twice.

      Here is the source for this....

      import java.util.Enumeration;
      import java.util.Properties;


      /** Zeigen der Systemeigenschaften. <br />
       * <br />
       * Diese Anwendung zeigt einige Systemeigenschaften.<br />
       * <br /><br />
       * Die Bibliothek {@link DE.a_weinert DE.a_weinert..}
       * wird nicht benötigt.<br />
       * <br />
       * Copyright 1998-2000 Albrecht Weinert
       * @author Albrecht Weinert
       * @version V00.03 (13.12.00 11:15)
       * @see DE.a_weinert
       * @see DE.a_weinert.Prop
       */
        // Bisher V00.00 (15:12 22.05.98) : neu
        // V00.01 (15:12 22.05.98) : Kommentarkosmetik /**
        // V00.02 (16:41 12.08.99) : ohne weinertBib (stand alone)
        // V00.03 (15:12 22.05.98) : /**

      public class ShowProps extends Object {

      /** Name und Version. <br />
       * <br />
       * ShowProps V00.03 (13.12.00 11:16, A. Weinert)
       */
         static public String version =
           "ShowProps V00.03 (13.12.00 11:16, A. Weinert)";


      /** Startmethode von ShowProps. <br />
       * <br />
       * Der Aufruf ist : java ShowProps<br />
       * <br />
       * @param args Kommandozeilenparameter (wird ignoriert)
       */
         public static void main(String[] args) {
            StringBuffer stB = new StringBuffer(200);
            Properties sP = System.getProperties();
            String name=null, prop=null;
            System.out.println ("\n\n - - - Java - System - Properties - - - \n"+
                         version+"\n\n");
       
            for (Enumeration e = sP.propertyNames();
                             e.hasMoreElements(); ) {
               name = (String) e.nextElement();
               stB.setLength(0);
               stB.append(name);
               while (stB.length() < 20 ) stB.append (' ');
               stB.append (" = ");
               prop = sP.getProperty(name);
               if (name.equalsIgnoreCase("line.separator")) {
                  stB.append("(\\n = ) ");
                  for (int i = 0; i < prop.length(); i++)
                      stB.append((int)prop.charAt(i) +" ");
               } /* line.sep */ else {
                  if (prop.length()+stB.length() > 78)
                     stB.append ("\n " + prop + "\n ");
                  else
                     stB.append(prop);
               } // other property
               System.out.println (stB);
            } // for
            System.exit(0);
        } // main()

      } // class

      (Review ID: 132834)
      ======================================================================

            sbohne Steve Bohne (Inactive)
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: