Click to See Complete Forum and Search --> : Problems compiling Php4.3.1 with java on Mac OsX


debio
05-07-2003, 02:42 PM
First I configure Php with:
./configure --with-apxs --with-java=/Library/Java/Home

everything is OK, so I try to compile Php with
make

but I obtain many errors and warning messages about java components, like "jni.h: No such file or Directory", "parse errer before JavaVM", and many others. The Last is "Error 1".

I use Mac Os X 10.2.5 with yhe latest realease of Java 2 Platform, Standard Edition, version 1.4.1

Can someone help me, please?

morgo
05-08-2003, 03:03 AM
Why is the path not /usr/bin/java?

(Is that a stupid suggestion of me - but that's what I would assume to be the path to Java).

debio
05-08-2003, 05:48 AM
Originally posted by morgo
Why is the path not /usr/bin/java?

(Is that a stupid suggestion of me - but that's what I would assume to be the path to Java).

I have no directory java in /usr/bin, and if I configure with path /usr/bin/java, I obtain the error message:
checking Java Jar location... configure:error: Unable to locate /usr/bin/java/bin.

When using the path /Library/Java/Home the configuration step is OK. On the other hand, as I understand from the documentation on Mac OsX 10.2.5 and Java, it seems that /Libray/Java/Home should be the path to Java