Women in Technology

Hear us Roar



Subject:   Problems compiling Php4.3.1 with java on Mac OsX
Date:   2004-02-27 05:04:16
From:   tristanr
Response to: Problems compiling Php4.3.1 with java on Mac OsX

I also ran into trouble compiling an app on OSX 10.3 because of the missing jni.h library


It turns out that the default file present in /System/Library/Frameworks/JavaVM.framework/Headers/ is actually a broken symbolic link! :


root# ls -l /System/Library/Frameworks/JavaVM.framework/Headers/jni.h
lrwxr-xr-x 1 root wheel 30 23 Feb 17:55 /System/Library/Frameworks/JavaVM.framework/Headers/OLD_jni.h -> ../../CurrentJDK/Headers/jni.h


and this file doesn't exist!


I managed to get it to compile by pointing the Java library path at the place where the Headers actually live, which is:


/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Headers


Hope that helps,


-Tristan.