### Get a System Property

To get the value of a system property, use getSystemProperty or JavaObject.
A list of key system properties can be found here:
http://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html
Use getSystemProperty.
Dim strProperty As String = GetSystemProperty("path.separator", "default")
Examples:
Log("Operating System:" & GetSystemProperty("os.name", "Unknown"))
Log("Java Version:" & GetSystemProperty("java.version", "Unknown"))
Use JavaObject
Dim JO As JavaObject
Examples
Log(JO.InitializeStatic("java.lang.System").RunMethodJO("getProperty", Array As Object("PROPERTY")))
List of Key Properties
"file.separator" = Character that separates components of a file path. This is "/" on UNIX and "\" on Windows.
"java.class.path" = Path to find directories and JAR archives containing class files.
"java.home" = Installation directory for Java Runtime Environment (JRE)
"java.vendor" = JRE vendor name
"java.vendor.url" = JRE vendor URL
"java.version" = JRE version number
"line.separator" = Sequence used by operating system to separate lines in text files
"os.arch" = Operating system architecture
"os.name" = Operating system name
"os.version" = Operating system version
"path.separator" = Path separator character used in java.class.path
"user.dir" = User working directory
"user.home" = User home directory
"user.name" = User account name
List of All Properties (Status Java 8)
awt.toolkit
file.encoding.pkg
file.encoding
file.separator
java.awt.graphicsenv
java.awt.printerjob
java.class.path
java.class.version
java.endorsed.dirs
java.ext.dirs
java.home
java.io.tmpdir
java.library.path
java.runtime.name
java.runtime.version
java.specification.name
java.specification.vendor
java.specification.version
java.vendor.url.bug
java.vendor.url
java.vendor
java.version
java.vm.info
java.vm.name
java.vm.specification.name
java.vm.specification.vendor
java.vm.specification.version
java.vm.vendor
java.vm.version
javafx.runtime.version
line.separator
os.arch
os.name
os.version
path.separator
sharing
sun.arch.data.model
sun.boot.class.path
sun.boot.library.path
sun.cpu.endian
sun.cpu.isalist
sun.desktop
sun.io.unicode.encoding
sun.java.command
sun.java.launcher
sun.jnu.encoding
sun.management.compiler
sun.os.patch.level
user.country
user.dir
user.home
user.language
user.name
user.script
user.timezone
user.variant

Changed: , Category: Application, File: T6C159M1158.htm, ID: 1158