com.horstmann.violet.framework
Class VersionChecker

java.lang.Object
  extended by com.horstmann.violet.framework.VersionChecker

public class VersionChecker
extends java.lang.Object

Checks if the Java version of the current VM is at least a given version.


Constructor Summary
VersionChecker()
           
 
Method Summary
 void check(java.lang.String desiredVersion)
          Checks if the current VM has at least the given version, and exits the program with an error dialog if not.
static int versionCompare(java.lang.String v1, java.lang.String v2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionChecker

public VersionChecker()
Method Detail

check

public void check(java.lang.String desiredVersion)
Checks if the current VM has at least the given version, and exits the program with an error dialog if not.

Parameters:
desiredVersion - the desired version

versionCompare

public static int versionCompare(java.lang.String v1,
                                 java.lang.String v2)