Share via


JavaSystem.Properties Property

Definition

Determines the current system properties. -or- Attempts to set all system properties.

public static Java.Util.Properties Properties { [Android.Runtime.Register("getProperties", "()Ljava/util/Properties;", "")] get; [Android.Runtime.Register("setProperties", "(Ljava/util/Properties;)V", "")] set; }
[<get: Android.Runtime.Register("getProperties", "()Ljava/util/Properties;", "")>]
[<set: Android.Runtime.Register("setProperties", "(Ljava/util/Properties;)V", "")>]
static member Properties : Java.Util.Properties with get, set

Property Value

the system properties

Attributes

Remarks

Property getter documentation:

Determines the current system properties.

The following properties are always provided by the Dalvik VM:

<table BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <tr BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <td><b>Name</b></td> <td><b>Meaning</b></td> <td><b>Example</b></td></tr> <tr><td>file.separator</td> <td>java.io.File#separator</td> <td>/</td></tr>

<tr><td>java.class.path</td> <td>System class path</td> <td>.</td></tr> <tr><td>java.class.version</td> <td>(Not useful on Android)</td> <td>50.0</td></tr> <tr><td>java.compiler</td> <td>(Not useful on Android)</td> <td>Empty</td></tr> <tr><td>java.ext.dirs</td> <td>(Not useful on Android)</td> <td>Empty</td></tr> <tr><td>java.home</td> <td>Location of the VM on the file system</td> <td>/apex/com.android.art/</td></tr> <tr><td>java.io.tmpdir</td> <td>Location of a temporary directory.<br>The location varies by application.<br>See java.io.File#createTempFile</td> <td>/data/user/0/com.android.app/cache</td></tr> <tr><td>java.library.path</td> <td>Search path for JNI libraries</td> <td>/vendor/lib:/system/lib</td></tr> <tr><td>java.vendor</td> <td>Human-readable VM vendor</td> <td>The Android Project</td></tr> <tr><td>java.vendor.url</td> <td>URL for VM vendor's web site</td> <td>http://www.android.com/</td></tr> <tr><td>java.version</td> <td>(Not useful on Android)</td> <td>0</td></tr>

<tr><td>java.specification.version</td> <td>VM libraries version</td> <td>0.9</td></tr> <tr><td>java.specification.vendor</td> <td>VM libraries vendor</td> <td>The Android Project</td></tr> <tr><td>java.specification.name</td> <td>VM libraries name</td> <td>Dalvik Core Library</td></tr> <tr><td>java.vm.version</td> <td>VM implementation version</td> <td>1.2.0</td></tr> <tr><td>java.vm.vendor</td> <td>VM implementation vendor</td> <td>The Android Project</td></tr> <tr><td>java.vm.name</td> <td>VM implementation name</td> <td>Dalvik</td></tr> <tr><td>java.vm.specification.version</td> <td>VM specification version</td> <td>0.9</td></tr> <tr><td>java.vm.specification.vendor</td> <td>VM specification vendor</td> <td>The Android Project</td></tr> <tr><td>java.vm.specification.name</td> <td>VM specification name</td> <td>Dalvik Virtual Machine Specification</td></tr>

<tr><td>line.separator</td> <td>The system line separator</td> <td>\n</td></tr>

<tr><td>os.arch</td> <td>OS architecture</td> <td>aarch64</td></tr> <tr><td>os.name</td> <td>OS (kernel) name</td> <td>Linux</td></tr> <tr><td>os.version</td> <td>OS (kernel) version</td> <td>5.10.98-g6ea688a79989</td></tr>

<tr><td>path.separator</td> <td>See java.io.File#pathSeparator</td> <td>:</td></tr>

<tr><td>user.dir</td> <td>Base of non-absolute paths</td> <td>/</td></tr> <tr><td>user.home</td> <td>(Not useful on Android)</td> <td>Empty</td></tr> <tr><td>user.name</td> <td>(Not useful on Android)</td> <td>Empty</td></tr>

</table>

Multiple paths in a system property value are separated by the path separator character of the platform.

Note that even if the security manager does not permit the getProperties operation, it may choose to permit the #getProperty(String) operation.

Java documentation for java.lang.System.getProperties().

Property setter documentation:

Attempts to set all system properties. Copies all properties from p and discards system properties that are read only and cannot be modified. See #getProperty for a list of such properties.

Java documentation for java.lang.System.setProperties(java.util.Properties).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to