// Java Program to view System Properties
class SystemProperties
{
public static void main(String[] alt)
{
System.out.println("\nOS Version = "+System.getProperty("os.version"));
System.out.println("\nOS Name = "+System.getProperty("os.name"));
System.out.println("\nOS Architecture = "+System.getProperty("os.arch"));
System.out.println("\nJava Compiler = "+System.getProperty("java.compiler"));
System.out.println("\nExtension Directory = "+System.getProperty("java.ext.dirs"));
System.out.println("\nPath Environment Variable = "+System.getProperty("java.library.path"));
System.out.println("\nFile Separator = "+System.getProperty("file.separator"));
System.out.println("\nPath Separator = "+System.getProperty("path.separator"));
System.out.println("\nCurrent working directory = "+System.getProperty("user.dir"));
System.out.println("\nCurrent working directory = "+System.getProperty("user.dir"));
System.out.println("\nAccount Name = "+System.getProperty("user.name"));
System.out.println("\nJVM implementation version = "+System.getProperty("java.vm.version"));
System.out.println("\nJVM implementation Name = "+System.getProperty("java.vm.name"));
System.out.println("\nJava installation directory = "+System.getProperty("java.home"));
System.out.println("\nJVM version = "+System.getProperty("java.runtime.version"));
System.out.println("\nJVM version = "+System.getProperty("deployment.javaws.jre.0.osname"));
System.out.println("\nJVM version = "+System.getProperty("deployment.javaws.jre.0.path"));
}
}
class SystemProperties
{
public static void main(String[] alt)
{
System.out.println("\nOS Version = "+System.getProperty("os.version"));
System.out.println("\nOS Name = "+System.getProperty("os.name"));
System.out.println("\nOS Architecture = "+System.getProperty("os.arch"));
System.out.println("\nJava Compiler = "+System.getProperty("java.compiler"));
System.out.println("\nExtension Directory = "+System.getProperty("java.ext.dirs"));
System.out.println("\nPath Environment Variable = "+System.getProperty("java.library.path"));
System.out.println("\nFile Separator = "+System.getProperty("file.separator"));
System.out.println("\nPath Separator = "+System.getProperty("path.separator"));
System.out.println("\nCurrent working directory = "+System.getProperty("user.dir"));
System.out.println("\nCurrent working directory = "+System.getProperty("user.dir"));
System.out.println("\nAccount Name = "+System.getProperty("user.name"));
System.out.println("\nJVM implementation version = "+System.getProperty("java.vm.version"));
System.out.println("\nJVM implementation Name = "+System.getProperty("java.vm.name"));
System.out.println("\nJava installation directory = "+System.getProperty("java.home"));
System.out.println("\nJVM version = "+System.getProperty("java.runtime.version"));
System.out.println("\nJVM version = "+System.getProperty("deployment.javaws.jre.0.osname"));
System.out.println("\nJVM version = "+System.getProperty("deployment.javaws.jre.0.path"));
}
}
0 Comment to "Java Program to view System Properties"
Post a Comment