| Article: |
PHP 4.3 and Mac OS X | |
| Subject: | Problems compiling Php4.3.1 with java on Mac OsX | |
| Date: | 2003-10-08 19:14:50 | |
| From: | anonymous2 | |
|
Response to: Problems compiling Php4.3.1 with java on Mac OsX
|
||
|
I'm running into the same problem with a different compile, Open Office. I don't know if this will help but jni.h exists in Java 1.3.1 but not in 1.4.1 in their respective headers directories.
|
||
Showing messages 1 through 1 of 1.
-
Problems compiling Php4.3.1 with java on Mac OsX
2004-02-27 05:04:16 tristanr [View]



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.