home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-12-14 | 715 b | 29 lines |
-
- import java.lang.*;
-
- class ReadProperties {
-
- public static void main(String[] args) {
-
- String str;
-
- try {
-
- str = System.getProperty("os.name", "not specified");
- System.out.println(" OS name: " + str);
-
- str = System.getProperty("java.version", "not specified");
- System.out.println(" JVM Version: " + str);
-
- str = System.getProperty("user.home", "not specified");
- System.out.println(" user.home: " + str);
-
- str = System.getProperty("java.home", "not specified");
- System.out.println(" java.home: " + str);
-
- } catch (Exception e) {
- System.err.println("Caught exception " + e.toString());
- }
- }
- }
-