View Javadoc

1   // System.java, created Sat Mar 29  2:34:35 2003 by joewhaley
2   // Copyright (C) 2001-3 John Whaley <jwhaley@alum.mit.edu>
3   // Licensed under the terms of the GNU LGPL; see COPYING for details.
4   package joeq.ClassLib.ibm13_win32.java.lang;
5   
6   import joeq.Class.PrimordialClassLoader;
7   
8   /***
9    * System
10   *
11   * @author  John Whaley <jwhaley@alum.mit.edu>
12   * @version $Id: System.java 1456 2004-03-09 22:01:46Z jwhaley $
13   */
14  public abstract class System {
15      
16      private static java.util.Properties initProperties(java.util.Properties props) {
17          props.setProperty("java.class.version", "47.0");
18          props.setProperty("java.home", "C://Program Files//IBM//Java13//jre");
19          props.setProperty("java.runtime.name", "Java(TM) 2 Runtime Environment, Standard Edition");
20          props.setProperty("java.runtime.version", "1.3.0");
21          props.setProperty("java.specification.name", "Java Platform API Specification");
22          props.setProperty("java.specification.vendor", "Sun Microsystems, Inc.");
23          props.setProperty("java.specification.version", "1.3");
24          props.setProperty("java.vendor", "joeq");
25          props.setProperty("java.vendor.url", "http://joeq.sourceforge.net");
26          props.setProperty("java.vendor.url.bug", "http://joeq.sourceforge.net");
27          props.setProperty("java.version", "1.3.0");
28          props.setProperty("java.vm.name", "joeq virtual machine");
29          props.setProperty("java.vm.specification.name", "Java Virtual Machine Specification");
30          props.setProperty("java.vm.specification.vendor", "Sun Microsystems, Inc.");
31          props.setProperty("java.vm.specification.version", "1.0");
32          props.setProperty("java.vm.vendor", "joeq");
33          props.setProperty("java.vm.version", "1.3.0");
34          
35          props.setProperty("os.arch", "x86");
36          props.setProperty("os.name", "Windows 2000");
37          props.setProperty("os.version", "5.0");
38          
39          props.setProperty("file.encoding", "Cp1252");
40          props.setProperty("file.encoding.pkg", "sun.io");
41          props.setProperty("file.separator", "//");
42          
43          props.setProperty("line.separator", "\r\n");
44          
45          props.setProperty("path.separator", ";");
46          
47          props.setProperty("user.dir", "C://joeq");
48          props.setProperty("user.home", "C://Documents and Settings//John Whaley");
49          props.setProperty("user.language", "en");
50          props.setProperty("user.name", "jwhaley");
51          props.setProperty("user.region", "US");
52          props.setProperty("user.timezone", "");
53  
54          // must be at end: classpathToString() uses some properties from above.
55          props.setProperty("java.class.path", PrimordialClassLoader.loader.classpathToString());
56  
57          return props;
58      }
59      
60  }