public class FindJava { public static void main(String[] args) { System.out.print(System.getProperty("java.home")); } }