2 # This module finds if Java is installed and determines where the
3 # include files and libraries are. This code sets the following
6 # JAVA_RUNTIME = the full path to the Java runtime
7 # JAVA_COMPILE = the full path to the Java compiler
8 # JAVA_ARCHIVE = the full path to the Java archiver
11 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\2.0;JavaHome]/bin"
12 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.9;JavaHome]/bin"
13 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.8;JavaHome]/bin"
14 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.7;JavaHome]/bin"
15 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.6;JavaHome]/bin"
16 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.5;JavaHome]/bin"
17 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.4;JavaHome]/bin"
18 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/bin"
24 /usr/java/j2sdk1.4.2_04
25 /usr/lib/j2sdk1.4-sun/bin
27 FIND_PROGRAM(JAVA_RUNTIME
29 PATHS ${JAVA_BIN_PATH}
32 FIND_PROGRAM(JAVA_ARCHIVE
34 PATHS ${JAVA_BIN_PATH}
37 FIND_PROGRAM(JAVA_COMPILE
39 PATHS ${JAVA_BIN_PATH}