Has anyone managed to get PHP to compile on Mac OS X with the --with-java
flag in the configure command?

I've tried it with PHP 4.3.2, 4.3.3, and 4.3.4, all without any luck.

I'm using Mac OS X Server 10.2.8, with Java 1.4.1.

I've tried 
./configure --with-mysql --with-apxs --with-xml
--with-java=/Library/Java/Home
and
./configure --with-mysql --with-apxs --with-xml --with-java

When I run make, it dies with:
make: *** [ext/java/java.lo] Error 1

I can build just fine if I configure with:
./configure --with-mysql --with-apxs --with-xml

Looking over the output from make, it looks like the trouble starts here:
/Users/admin/Desktop/php-4.3.3/ext/java/java.c:39:24: JavaVM/jni.h: No such
file or directory

The only jni.h files I could find are:
/Developer/Java/Headers/vm-jni.h
/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers/jni.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jni.h

My knowledge of how Apple set up java gets a bit fuzzy at this point.
http://developer.apple.com/documentation/Java/Conceptual/Java131Development/
overview/chapter_2_section_5.html helps a bit, but clearly we're moving
beyond just a simple install here.

Any ideas?  Anybody have success with this?

Thanks,
Karl

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to