* @param args
* the arguments
*/
public static void main(String[] args)
{
Configuration conf = new BaseConfiguration();
conf.setProperty("wrapper.java.command", "java");
WindowsJavaHome javaHome = new WindowsJavaHome(conf);
System.out.println(javaHome.findJava());
conf.setProperty("wrapper.java.customProcName", "test");
javaHome = new WindowsJavaHome(conf);
System.out.println(javaHome.findJava());
conf.setProperty("wrapper.java.command", "javaw");
javaHome = new WindowsJavaHome(conf);
System.out.println(javaHome.findJava());
conf.clear();
conf.setProperty("wrapper.java.minversion", "1.5.0");
conf.setProperty("wrapper.java.maxversion", "1.5.99");
conf.setProperty("wrapper.java.customProcName", "test");
javaHome = new WindowsJavaHome(conf);
System.out.println(javaHome.findJava());
conf.clear();
conf.setProperty("wrapper.java.minversion", "1.6.0");
conf.setProperty("wrapper.java.customProcName", "test");
conf.setProperty("wrapper.java.preferJdk", true);
javaHome = new WindowsJavaHome(conf);
System.out.println(javaHome.findJava());
}