home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
Main.bin
/
CheckPlatform.java
< prev
next >
Wrap
Text File
|
1998-09-29
|
2KB
|
77 lines
package com.symantec.itools.tools.utilities;
import java.applet.Applet;
import com.symantec.itools.lang.AccessiblePlatform;
/**
* @author Symantec Internet Tools Division
* @version 1.0
* @since VCafe 3.0
*/
public class CheckPlatform
extends Applet
{
public CheckPlatform()
{
}
public void init()
{
boolean badInfo;
badInfo = false;
if(AccessiblePlatform.getJavaVendor() == null)
{
System.out.println("Platform doesn't know about the Java Vendor: " + System.getProperty("java.vendor"));
badInfo = true;
}
if(AccessiblePlatform.getJavaVersion() == null)
{
System.out.println("Platform doesn't know about the Java Version: " + System.getProperty("java.version"));
badInfo = true;
}
if(AccessiblePlatform.getOSName() == null)
{
System.out.println("Platform doesn't know about the OS Name: " + System.getProperty("os.name"));
badInfo = true;
}
if(AccessiblePlatform.getOSVersion() == null)
{
System.out.println("Platform doesn't know about the OS Version: " + System.getProperty("os.version"));
badInfo = true;
}
if(AccessiblePlatform.getOSType() == null)
{
System.out.println("Platform doesn't know what OS Type " + System.getProperty("os.name") + " is");
badInfo = true;
}
if(AccessiblePlatform.getArchitecture() == null)
{
System.out.println("Platform doesn't know about the Architecture: " + System.getProperty("os.arch"));
badInfo = true;
}
if(!(badInfo))
{
System.out.println("Platform knows about this configuration");
}
}
/**
* @param argv TODO
* @since VCafe 3.0
*/
public static void main(String[] argv)
{
new CheckPlatform().init();
}
}