Command Line Reference

     Previous  Next    Open TOC in new window  Open Index in new window  View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Oracle JRockit JVM System Properties

The System class maintains a set of properties—key/value pairs—that define traits or attributes of the current working environment. When the Java application first starts up, the system properties are initialized with information about the runtime environment, including information about the current user, the current version of the Java runtime, and even the product vendor’s bug report URL.

This chapter describes the key system properties available with the Oracle JRockit JVM:

As described above, system properties are part of the System class as defined by J2SE 1.4.2 and 5.0. You can obtain these properties in a Java class simply by calling the getProperty() method. Listing 4-1 shows how the getProperty() method is used to get system properties.

Listing 4-1 Obtaining System Properties
      String os_name        =   System.getProperty("os.name");
String os_arch = System.getProperty("os.arch");
String java_home = System.getProperty("java.home");
String java_vm_name = System.getProperty("java.vm.name");

 


java.vendor

This property identifies the J2SE JDK/JRE product vendor. This includes:

For example:

Oracle

 


java.vendor.url

This property identifies the J2SE JDK/JRE product vendor URL; for example:

 


java.vendor.url.bug

This property identifies the J2SE JDK/JRE product vendor bug report URL. This includes:

 


java.version

This property identifies the J2SE JDK/JRE product version; that is, which version of the JDK or JSE you are running. The version number also appears on the first line of the output and is common to Sun JRE and Oracle JRockit JRE. The information generated by this property appears in this format:

<jdk_major_version>.<jdk_minor_version>.<jdk_micro_version>[_<jdk_update_version>][-<milestone>]

The value appears in bold in the example version output below:

java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
BEA JRockit(R) (build dra-45238-20050523-2021-win-ia32, R25.2.0-28)

For more information on java.version, please refer to:


http://java.sun.com/j2se/versioning_naming.html 

 


java.runtime.version

This property identifies the J2SE JDK/JRE product version and build identifier. The value also appears on the second line of the java -version output in the following format:

<jdk_major_version>.<jdk_minor_version>.<jdk_micro_version>[_<jdk_update_version>][-<milestone>]-<build_number> 

The value appears in bold in the example version output below:

java version “1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
BEA JRockit(R) (build dra-45238-20050523-2021-win-ia32, R25.2.0-28)

This value is common to both the Sun JRE and JRockit JRE.

For more information, please refer to:


http://java.sun.com/j2se/versioning_naming.html

 


java.vm.name

This property identifies the JVM implementation. It appears on the third line of java -version output. Depending upon the JVM you are using, the VM name will appear as either:

or

The value appears in bold in the example version output below:

java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
BEA JRockit(R) (build dra-45238-20050523-2021-win-ia32, R25.2.0-28

 


java.vm.vendor

This property identifies the JVM implementation vendor; for example:

 


java.vm.vendor.url

This property identifies the JVM implementation vendor URL; for example:

 


java.vm.version

This property identifies the JVM implementation version. The version ID appear on the third line of java -version output. This ID is the main method to distinguish between JRockit JVM versions. Below are examples from a few different releases of the JRockit JVM

The value appears in bold in the example version output below:

java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
BEA JRockit(R) (build dra-45238-20050523-2021-win-ia32, R25.2.0-28)

 


java.vm.specification.version

This property identifies the version of the Java Virtual Machine specification upon which your JRockit JVM instance is based.

For example:

1.0

 


java.vm.specification.vendor

This property identifies the vendor of the Java Virtual Machine specification upon which your JRockit JVM instance is based.

For example:

Sun Microsystems Inc

 


java.vm.specification.name

This property identifies the name of the Java Virtual Machine specification upon which your JRockit JVM instance is based.

For example:

Java Virtual Machine Specifications

 


os.name

This property identifies the operating system. For the JRockit JVM, this includes:

For example:

Windows XP

For additional information on O/S support, please refer to Oracle JRockit JDK Supported Configurations at


http://edocs.bea.com/jrockit/jrdocs/suppPlat/supp_plat.html

 


os.arch

This property identifies the operating system architecture. For Oracle JRockit JVM, this includes:

For example:

x86

For additional information on supported architectures, please refer to Oracle JRockit JDK Supported Configurations at


http://edocs.bea.com/jrockit/jrdocs/suppPlat/supp_plat.html

 


os.version

This property identifies the operating system version. For example:

5.1

For additional information on O/S support, please refer to Oracle JRockit JDK Supported Configurations at


http://edocs.bea.com/jrockit/jrdocs/suppPlat/supp_plat.html

  Back to Top       Previous  Next