View Javadoc

1   // System.java, created Fri Jan 11 17:08:41 2002 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_linux.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.version", "1.3.0");
18          props.setProperty("java.vendor", "joeq");
19          props.setProperty("java.vendor.url", "http://www.joewhaley.com");
20          props.setProperty("java.class.version", "47.0");
21          
22          // TODO: read these properties from environment.
23          props.setProperty("java.home", "/opt/IBMJava2-13/jre");
24          props.setProperty("os.name", "Linux");
25          props.setProperty("os.arch", "x86");
26          props.setProperty("os.version", "2.4.9-31smp");
27          props.setProperty("file.separator", "/");
28          props.setProperty("path.separator", ":");
29          props.setProperty("line.separator", "\n");
30          props.setProperty("user.name", "jwhaley");
31          props.setProperty("user.home", "/u/jwhaley");
32          props.setProperty("user.dir", "/u/jwhaley/joeq");
33          props.setProperty("java.class.path", PrimordialClassLoader.loader.classpathToString());
34          return props;
35      }
36      
37  }