diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-07-23 10:50:20 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-07-23 10:50:20 +0000 |
commit | 8c25d1058d0bf03aa01bd232dbcdfd2705d89dc4 (patch) | |
tree | 4a48da1df8f1086b0c670d2bfd890b83747e96ce | |
parent | 03770d3ed721cf91609917ab460163470aca0a84 (diff) |
INTEGRATION: CWS jl8 (1.1.2); FILE ADDED
2004/06/24 14:12:04 jl 1.1.2.2: #i30342#
2004/06/18 14:56:34 jl 1.1.2.1: #i30342# plugin supports multiple vendors
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/JREProperties.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/JREProperties.java b/jvmfwk/plugins/sunmajor/pluginlib/JREProperties.java new file mode 100644 index 000000000000..cfeec721330c --- /dev/null +++ b/jvmfwk/plugins/sunmajor/pluginlib/JREProperties.java @@ -0,0 +1,36 @@ +import java.io.*; +import java.util.*; +import java.awt.*; + +public class JREProperties +{ + static public void main(String[] args) + { + try + { + try{ + //This line is needed to get the accessibility properties + Toolkit tk = java.awt.Toolkit.getDefaultToolkit(); + } + catch(Throwable e) + { + System.err.println(e); + } + + Properties p = System.getProperties(); + Enumeration e = p.propertyNames(); + for (; e.hasMoreElements() ;) { + String sProp = (String) e.nextElement(); + String sCompleteProp = sProp + "=" + p.getProperty(sProp); + + System.out.println(sCompleteProp); + } + } + catch(Exception e) + { + System.err.println(e); + } + + System.exit(0); + } +} |