#14868 [Opn->Csd]: incorrect configuration for --with-java

From: Date: Thu, 08 Aug 2002 14:04:42 +0000
Subject: #14868 [Opn->Csd]: incorrect configuration for --with-java
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16275@lists.php.net to get a copy of this message
ID: 14868 Updated by: kalowsky@php.net Reported By: phil@bolthole.com -Status: Open +Status: Closed Bug Type: Java related Operating System: solaris PHP Version: 4.1.0 New Comment: This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-01-05 05:48:11] phil@bolthole.com There are MULTIPLE problems with what should be a simple option for configure: --with-java=/usr/java1.1 Problem #1: improper detection of javac and jar in PATH. I had JAVA_JAR set to "no jar in /usr/bin ....." Please check to see that there is an actual executable! Similar problem with javac. ext/java/Makefile hardcodes 'javac', instead of having a variable $(JAVAC) set in config_vars.mk, and having an executable check done for the var. [adding /usr/java1.1/bin to my PATH solves both problems] Additional problem: JAVA_INCLUDE = -I/usr/java1.1/include is not adequate. It must be JAVA_INCLUDE = -I/usr/java1.1/include/solaris \ -I/usr/java1.1/include because jni_md.h is in the solaris subdir. Once I hand-edited the above valies in config_vars.mk, the java extention compile successfully with solaris 8. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14868&edit=1

« previous php.bugs (#16275) next »