home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java by Example
/
jbecd.bin
/
JBE-CD
/
NTUsers
/
JBECODE.ZIP
/
JavaByExample
/
chap36
/
SystemApp2.java
< prev
Wrap
Text File
|
1996-03-26
|
2KB
|
65 lines
public class SystemApp2
{
public static void main(String args[])
{
System.out.println("");
System.out.println("----------------------------------");
String str = "Java Version: " +
System.getProperty("java.version");
System.out.println(str);
str = "Java Vendor: " +
System.getProperty("java.vendor");
System.out.println(str);
str = "Java Vendor URL: " +
System.getProperty("java.vendor.URL");
System.out.println(str);
str = "Java Class Path: " +
System.getProperty("java.class.path");
System.out.println(str);
str = "Java Class Version: " +
System.getProperty("java.class.version");
System.out.println(str);
str = "Java Home: " +
System.getProperty("java.home");
System.out.println(str);
str = "OS Name: " +
System.getProperty("os.name");
System.out.println(str);
str = "OS Version: " +
System.getProperty("os.version");
System.out.println(str);
str = "OS Architecture: " +
System.getProperty("os.arch");
System.out.println(str);
str = "Line Separator: " +
System.getProperty("line.separator");
System.out.println(str);
str = "Path Separator: " +
System.getProperty("path.separator");
System.out.println(str);
str = "User Name: " +
System.getProperty("user.name");
System.out.println(str);
str = "User Home: " +
System.getProperty("user.home");
System.out.println(str);
str = "User Directory: " +
System.getProperty("user.directory");
System.out.println(str);
System.out.println("----------------------------------");
}
}