Class JavaVersionChecker

java.lang.Object
  extended by JavaVersionChecker

public class JavaVersionChecker
extends Object

The purpose of this class is to provide a Java2 (1.2.x) compatible class that can simply check the JVM version and put up a dialog message if the version isn't sufficiently recent. This class should be compiled and jar'd with JDK 1.2.2 so that any JVM 1.2.2 and higher can execute it. This is so that the user sees a nice informative message telling them their JVM is old, instead of the dreaded : Cannot find main class. Program will exit.


Constructor Summary
JavaVersionChecker()
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaVersionChecker

public JavaVersionChecker()
Method Detail

main

public static void main(String[] args)
Parameters:
args - should contain at least one version of Java which is the acceptable minimum version. If that version is not the latest version of Java available, then newer versions (which are also acceptable) should also be specified after the minimum acceptable version.


Copyright © 2001-2010. All Rights Reserved.