/[classpath]/classpath/vm/reference/java/lang/VMRuntime.java
ViewVC logotype

Diff of /classpath/vm/reference/java/lang/VMRuntime.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by mark, Thu Jul 8 14:40:32 2004 UTC revision 1.5.2.1 by gnu_andrew, Sun Jan 16 15:15:15 2005 UTC
# Line 151  final class VMRuntime Line 151  final class VMRuntime
151       * already been mapped to a true filename.       * already been mapped to a true filename.
152       *       *
153       * @param filename the file to load       * @param filename the file to load
154         * @param loader class loader, or <code>null</code> for the boot loader
155       * @return 0 on failure, nonzero on success       * @return 0 on failure, nonzero on success
156       */       */
157      static native int nativeLoad(String filename);      static native int nativeLoad(String filename, ClassLoader loader);
158    
159      /**      /**
160       * Map a system-independent "short name" to the full file name, and append       * Map a system-independent "short name" to the full file name.
      * it to the path.  
      * XXX This method is being replaced by System.mapLibraryName.  
161       *       *
      * @param pathname the path  
162       * @param libname the short version of the library name       * @param libname the short version of the library name
163       * @return the full filename       * @return the full filename
164       */       */
165      static native String nativeGetLibname(String pathname, String libname);      static native String mapLibraryName(String libname);
166    
167      /**      /**
168       * Execute a process. The command line has already been tokenized, and       * Execute a process. The command line has already been tokenized, and
# Line 185  final class VMRuntime Line 183  final class VMRuntime
183      }      }
184    
185      /**      /**
186       * Get the system properties. This is done here, instead of in System,       * This method is called by Runtime.addShutdownHook() when it is
187       * because of the bootstrap sequence. Note that the native code should       * called for the first time. It enables the VM to lazily setup
188       * not try to use the Java I/O classes yet, as they rely on the properties       * an exit handler, should it so desire.
      * already existing. The only safe method to use to insert these default  
      * system properties is {@link Properties#setProperty(String, String)}.  
      *  
      * <p>These properties MUST include:  
      * <dl>  
      * <dt>java.version         <dd>Java version number  
      * <dt>java.vendor          <dd>Java vendor specific string  
      * <dt>java.vendor.url      <dd>Java vendor URL  
      * <dt>java.home            <dd>Java installation directory  
      * <dt>java.vm.specification.version <dd>VM Spec version  
      * <dt>java.vm.specification.vendor  <dd>VM Spec vendor  
      * <dt>java.vm.specification.name    <dd>VM Spec name  
      * <dt>java.vm.version      <dd>VM implementation version  
      * <dt>java.vm.vendor       <dd>VM implementation vendor  
      * <dt>java.vm.name         <dd>VM implementation name  
      * <dt>java.specification.version    <dd>Java Runtime Environment version  
      * <dt>java.specification.vendor     <dd>Java Runtime Environment vendor  
      * <dt>java.specification.name       <dd>Java Runtime Environment name  
      * <dt>java.class.version   <dd>Java class version number  
      * <dt>java.class.path      <dd>Java classpath  
      * <dt>java.library.path    <dd>Path for finding Java libraries  
      * <dt>java.io.tmpdir       <dd>Default temp file path  
      * <dt>java.compiler        <dd>Name of JIT to use  
      * <dt>java.ext.dirs        <dd>Java extension path  
      * <dt>os.name              <dd>Operating System Name  
      * <dt>os.arch              <dd>Operating System Architecture  
      * <dt>os.version           <dd>Operating System Version  
      * <dt>file.separator       <dd>File separator ("/" on Unix)  
      * <dt>file.encoding        <dd>Standard encoding for text (Default 8859_1)  
      * <dt>path.separator       <dd>Path separator (":" on Unix)  
      * <dt>line.separator       <dd>Line separator ("\n" on Unix)  
      * <dt>user.name            <dd>User account name  
      * <dt>user.home            <dd>User home directory  
      * <dt>user.dir             <dd>User's current working directory  
      * </dl>  
      *  
      * @param p the Properties object to insert the system properties into  
189       */       */
190      static native void insertSystemProperties(Properties p);      static void enableShutdownHooks()
191        {
192        }
193  } // class VMRuntime  } // class VMRuntime

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.5.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26