Java - System Property

Java Conceptuel Diagram


The Java platform uses a Properties object to maintain its own configuration.

Access to system properties can be restricted by the Security Manager.



  • With the argument -Dname=value

    when starting the JVM

java -Dname=value ......
  • System.setProperty function


String value = System.getProperty("name");

Reserved Property

Key Meaning
“file.separator” Character that separates components of a file path. This is “/” on UNIX and “\” on Windows.
“java.class.path” Path used to find directories and JAR archives containing class files. Elements of the class path are separated by a platform-specific character specified in the path.separator property.
“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
“” 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 account name

Documentation / Reference

Discover More
Fitnesse Architecture
Fitnesse - Variable

variable in Fitnesse In a page As an environment variable As java system property If you define the variable in the root page, they will be availble globally....
Java Conceptuel Diagram
Java - Class (Loader|Loading) Process

A class loader is a piece of code that load a class. Class loaders may typically be used by security managers to indicate security domains. Classes are loaded into the JVM only on demand, so even...
Java Conceptuel Diagram
Java - File System - Path

in Java. The path is unique identifier of a file (directory) In nio, a Path instance represents a file or directory but doesn't access the file system (for instance in order to verify that a particular...
Java Conceptuel Diagram
Java - What is the Classpath?

Java classes needed to execute a Java program can be physically located in different file system directories. When Java classes are loaded, it searches a list of directories that are specified in what's...
Java Conceptuel Diagram
Java File System - Directory

in Java With nio With With With nio. newDirectoryStream opens a directory, returns a DirectoryStream to iterate over all entries in the directory. The elements returned by the directory...
Card Puncher Data Processing
Maven - (Property|Filter)

A property is used to supplied value of resource files at build time. This process is called filtering. A property can be: one of the values defined in your pom.xml, a value defined in the user's...
Card Puncher Data Processing
Maven - D Argument

The D maven option define: a system property or an argument for a goal.
Card Puncher Data Processing
Maven - user.home

The user.home directory is the home directory used by Maven to saved all maven configurations. You can change the user home by setting the user.home system property
Java Conceptuel Diagram
Vert.x - Logger

logging in Vertx is managed by the Vertx Logger The Vertx logger is a facade for logging system. It uses the JUL logger as default logging...

Share this page:
Follow us:
Task Runner