// $Id: whichjava.java 19708 2010-10-29 18:04:21Z d3y133 $

public class whichjava implements Runnable {
  public static void main(String[] args){
    System.out.println("The Java Version in your path is " + System.getProperty("java.version"));
    if (System.getProperty("java.version").indexOf("1.2")>=0){System.exit((int)0);};
    if (System.getProperty("java.version").indexOf("1.3")>=0){System.exit((int)0);};
    if (System.getProperty("java.version").indexOf("1.4")>=0){System.exit((int)0);};
    if (System.getProperty("java.version").indexOf("1.5")>=0){System.exit((int)0);};
    if (System.getProperty("java.version").indexOf("1.6")>=0){System.exit((int)0);};
    System.out.println (" This code requires Java 1.2 or greater"); System.exit((int)1);
  }

  public void init(){};

  public void start(){};

  public void run(){};

}

