2 # This module finds if Java is installed and determines where the
3 # include files and libraries are. It also determines what the name of
4 # the library is. This code sets the following variables:
6 # JAVA_AWT_LIB_PATH = the path to where the jawt library is
7 # JAVA_INCLUDE_PATH = the path to where jni.h can be found
8 # JAVA_AWT_INCLUDE_PATH = the path to where jni.h can be found
11 FIND_LIBRARY(JAVA_AWT_LIBRARY jawt
12 PATHS /usr/lib /usr/local/lib
13 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/lib"
16 # add in the include path
17 FIND_PATH(JAVA_INCLUDE_PATH jni.h
20 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/include"
23 FIND_PATH(JAVA_INCLUDE_PATH2 jni_md.h
24 ${JAVA_INCLUDE_PATH}/win32
25 ${JAVA_INCLUDE_PATH}/linux
28 FIND_PATH(JAVA_AWT_INCLUDE_PATH jawt.h ${JAVA_INCLUDE_PATH} )