class SystemProperties{
public static void main(String[] args) {
System.out.print("User name : ");
System.out.println(System.getProperty("user.name"));
System.out.print("Operating System : ");
System.out.println(System.getProperty("os.name"));
System.out.print("OS version : ");
System.out.println(System.getProperty("os.version"));
System.out.print("Os Architecture : ");
System.out.println(System.getProperty("os.arch"));
System.out.print("Java Classpath : ");
System.out.println(System.getProperty("java.class.path"));
System.out.print("Java version : ");
System.out.println(System.getProperty("java.version"));
System.out.print("Java home : ");
System.out.println(System.getProperty("java.home"));
}
}
You will find: JAVA and C programming examples and advices. Tips about computers. Few MIPS examples and advices about assembly. I try to update very often. Feel free to post your comments.
3/3/08
Java System Properties
This java code prints some information about your system like Operating system, architecture e.t.c.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment