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

There is no requiried property "java.class.path"

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5

      Description



      Name: ksC84122 Date: 07/28/99


       
       Requried System property "java.class.path" disappears after reinitialization
       JavaDoc says :
       "If there is no current set of system properties, a set of system properties is first created and
       initialized.
       This set of system properties always includes values for the following keys:
       Key Description of Associated Value
       ...
       java.class.path Java class path
      ..."

      ------------------------- Test.java
      class Test {
          public static void main(String [] args) throws Exception {
              System.out.println(System.getProperty("java.vm.name"));
              System.out.println(System.getProperty("java.class.path"));
              System.setProperties(null);
              System.out.println(System.getProperty("java.vm.name"));
              System.out.println(System.getProperty("java.class.path"));
          }
      }
      ------------------------- Output jdk1.3 solaris
      Classic VM
      .
      Classic VM
      null
      -------------------------
       
                  
      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            mmcclosksunw Michael Mccloskey (Inactive)
            Reporter:
            skosunw Sko Sko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: