Home > Java > javaTutorial > body text

System.getProperty() method to obtain the complete list

巴扎黑
Release: 2016-12-02 10:54:32
Original
1284 people have browsed it

System.out.println("java version number: " + System.getProperty("java.version")); // java version number
System.out.println("Java provider name: " + System.getProperty( "java.vendor")); // Java provider name
System.out.println("Java provider website:" + System.getProperty("java.vendor.url")); // Java provider website
System.out.println("jre directory:" + System.getProperty("java.home")); // Java, oh, it should be the jre directory
System.out.println("Java virtual machine specification version number:" + System.getProperty("java.vm.specification.version")); // Java virtual machine specification version number
System.out.println("Java virtual machine specification provider:" + System.getProperty("java.vm .specification.vendor")); // Java virtual machine specification provider
System.out.println("Java virtual machine specification name:" + System.getProperty("java.vm.specification.name")); // Java virtual machine specification name
System.out.println("Java virtual machine version number:" + System.getProperty("java.vm.version")); // Java virtual machine version number
System.out.println(" Java virtual machine provider: " + System.getProperty("java.vm.vendor")); // Java virtual machine provider
System.out.println("Java virtual machine name:" + System.getProperty("java .vm.name")); // Java virtual machine name
System.out.println("Java specification version number: " + System.getProperty("java.specification.version")); // Java specification version number
System.out.println("Java specification provider:" + System.getProperty("java.specification.vendor")); // Java specification provider
System.out.println("Java specification name:" + System. getProperty("java.specification.name")); // Java specification name
System.out.println("Java class version number:" + System.getProperty("java.class.version")); // Java class Version number
System.out.println("Java class path:" + System.getProperty("java.class.path")); // Java class path
System.out.println("Java lib path:" + System .getProperty("java.library.path")); // Java lib path
System.out.println("Java input and output temporary path:" + System.getProperty("java.io.tmpdir")); // Java input and output temporary path
System.out.println("Java compiler: " + System.getProperty("java.compiler")); // Java compiler
System.out.println("Java execution path: " + System.getProperty("java.ext.dirs")); // Java execution path
System.out.println("Operating system name: " + System.getProperty("os.name")); // Operating system name
System.out.println("Operating system architecture:" + System.getProperty("os.arch")); // Operating system architecture
System.out.println("Operating system version number: " + System. getProperty("os.version")); // Operating system version number
System.out.println("File separator: " + System.getProperty("file.separator")); // File separator
System. out.println("Path separator:" + System.getProperty("path.separator")); // Path separator
System.out.println("Line separator:" + System.getProperty("line.separator ")); // Line separator
System.out.println("Operating system user name: " + System.getProperty("user.name")); // User name
System.out.println("Operating system The user's home directory: " + System.getProperty("user.home")); // The user's home directory
System.out.println("The directory where the current program is located:" + System.getProperty("user.dir") ); //The directory where the current program is located

System.getProperty("catalina.home") //Tomcat installation directory


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template