home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
Main.bin
/
ShowSystemProperties.java
< prev
next >
Wrap
Text File
|
1998-09-27
|
2KB
|
66 lines
package com.symantec.itools.tools.utilities;
import java.applet.Applet;
import java.util.Enumeration;
import java.util.Properties;
/**
* @author Symantec Internet Tools Division
* @version 1.0
* @since VCafe 3.0
*/
public class ShowSystemProperties
extends Applet
{
public ShowSystemProperties()
{
}
/**
* @since VCafe 3.0
*/
public void init()
{
Properties properties;
try
{
properties = System.getProperties();
for(Enumeration keys = properties.keys(); keys.hasMoreElements();)
{
String key;
key = (String)keys.nextElement();
if(!(key.equals("java.class.path")))
{
try
{
System.out.println(key + " = " + properties.get(key));
}
catch(SecurityException ex)
{
System.out.println("Security Excpetion for key: " + key);
}
}
}
}
catch(SecurityException ex)
{
System.out.println("Security Excpetion: Cannot access System.getProperties()");
}
}
/**
* @param argv TODO
* @since VCafe 3.0
*/
public static void main(String[] argv)
{
new ShowSystemProperties().init();
}
}