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
12 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.4;JavaHome]/bin"
13 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/bin"
20 FIND_PROGRAM(JAVA_RUNTIME
22 PATHS ${JAVA_BIN_PATH}
25 FIND_PROGRAM(JAVA_ARCHIVE
27 PATHS ${JAVA_BIN_PATH}
30 FIND_PROGRAM(JAVA_COMPILE
32 PATHS ${JAVA_BIN_PATH}