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
14 /usr/lib/java/jre/lib/i386
15 /usr/local/lib/java/jre/lib/i386
16 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/lib"
19 # add in the include path
20 FIND_PATH(JAVA_INCLUDE_PATH jni.h
24 /usr/local/lib/java/include
25 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/include"
28 FIND_PATH(JAVA_INCLUDE_PATH2 jni_md.h
29 ${JAVA_INCLUDE_PATH}/win32
30 ${JAVA_INCLUDE_PATH}/linux
33 FIND_PATH(JAVA_AWT_INCLUDE_PATH jawt.h ${JAVA_INCLUDE_PATH} )