HTML & JS
// Java Program illustrating the working of getProperties() method

import java.lang.*;
import java.util.Properties;

public class NewClass
{
	public static void main(String[] args)
	{

		/* Use of getProperties() method
			System class refers to the JVM on which you are compling your JAVA code
			getProperty fetches the actual properties
			that JVM on your Sysytem gets from your Operating System
		*/

		System.out.println("Following are the JVM information of your OS :");
		System.out.println("");
		
		// Property Object
		Properties jvm = System.getProperties();
		jvm.list(System.out);
	}
}

Generated URL:

Output:

Following are the JVM information of your OS :

-- listing properties --
java.runtime.name=Java(TM) SE Runtime Environment
sun.boot.library.path=/usr/lib/jvm/java-8-oracle/jre/lib/amd64
java.vm.version=25.101-b13
java.vm.vendor=Oracle Corporation
java.vendor.url=http://java.oracle.com/
path.separator=:
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg=sun.io
user.country=US
sun.java.launcher=SUN_STANDARD
sun.os.patch.level=unknown
java.vm.specification.name=Java Virtual Machine Specification
user.dir=/tmp/hsperfdata_bot
java.runtime.version=1.8.0_101-b13
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.endorsed.dirs=/usr/lib/jvm/java-8-oracle/jre/lib/en...
os.arch=amd64
java.io.tmpdir=/tmp
line.separator=

java.vm.specification.vendor=Oracle Corporation
os.name=Linux
sun.jnu.encoding=ANSI_X3.4-1968
java.library.path=/usr/java/packages/lib/amd64:/usr/lib...
java.specification.name=Java Platform API Specification
java.class.version=52.0
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
os.version=3.13.0-95-generic
user.home=/home/bot
user.timezone=
java.awt.printerjob=sun.print.PSPrinterJob
file.encoding=ANSI_X3.4-1968
java.specification.version=1.8
user.name=bot
java.class.path=/home/bot/a17d79ff36f4281bb3e8014531a...
java.vm.specification.version=1.8
sun.arch.data.model=64
java.home=/usr/lib/jvm/java-8-oracle/jre
sun.java.command=NewClass a17d79ff36f4281bb3e8014531aa...
java.specification.vendor=Oracle Corporation
user.language=en
awt.toolkit=sun.awt.X11.XToolkit
java.vm.info=mixed mode
java.version=1.8.0_101
java.ext.dirs=/usr/lib/jvm/java-8-oracle/jre/lib/ex...
sun.boot.class.path=/usr/lib/jvm/java-8-oracle/jre/lib/re...
java.vendor=Oracle Corporation
file.separator=/
java.vendor.url.bug=http://bugreport.sun.com/bugreport/
sun.cpu.endian=little
sun.io.unicode.encoding=UnicodeLittle
sun.cpu.isalist=
Report Bug