php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20505 configure --with-java fails
Submitted: 2002-11-19 15:14 UTC Modified: 2003-08-18 19:44 UTC
From: tjw at webteam dot net Assigned:
Status: No Feedback Package: Java related
PHP Version: 4.3.0RC1 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tjw at webteam dot net
New email:
PHP Version: OS:

 

 [2002-11-19 15:14 UTC] tjw at webteam dot net
./configure --with-java=/usr/local/jdk 

fails with 

checking for Java support... yes
checking Java Jar location... /usr/local/jdk/bin/jar cf
checking Java C location... /usr/local/jdk/bin/javac
checking Checking for libjava... 
configure: error: unable to find Java VM libraries in /usr/local/jdk

Same result for /usr/local/jdk equal to:

IBMJava2-131 (IBM's Java2 JDK)
j2sdk1.3.1 (Blackdown 1.3.1 JDK)
j2sdk1.4.1 (Blackdown 1.4.1 JDK)
jdk1.2.2 (Blackdown 1.2.2 JDK)
kaffe_1.0.7 (Kaffe 1.0.7)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-19 16:35 UTC] tjw at webteam dot net
It seems I was a bit hasty in my testing.  I forgot to rm config.cache
for each of the runs.

The only JDK's that fail are IBMJava2-131 and Kaffe 1.0.7.  All of the Blackdown JDK's work fine (with configure that is).

IBM's JDK puts libjava.so inside of jre/bin as opposed to jre/lib/i386
as Blackdown does.  There should be a test for this in configure, but 
I'm not sure of the best spot.  I was able to build 4.3.0RC1 sucessfully 
by manually adjusting JAVA_LIBPATH.

Kaffe seems to have changed into an entirely different beast in 1.0.6
and 1.0.7.  It looks like several things configure looks for are no 
longer in the same place as they were in older versions of Kaffe as
they are now in .jar files.  I'm unable to test out the older versions 
of Kaffe because I can't get them to build on my system.  I'm also 
not experienced enough in Kaffe to try to tweak PHP to build with it.
 [2002-11-28 07:15 UTC] chregu@php.net
the configure of ext/java is quite old and was only tested for suns jdk stuff recently (well, they didn't change their paths )

I would recommend using the sun jdk. Or someone fixes the configure line ...

chregu
 [2003-08-18 19:44 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 20:01:29 2024 UTC