php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15113 PHP4,javabeans, libphp_java.so
Submitted: 2002-01-19 05:38 UTC Modified: 2002-03-25 01:07 UTC
Votes:5
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:1 (25.0%)
From: iwdm at 21cn dot com Assigned:
Status: No Feedback Package: Java related
PHP Version: 4.1.1 OS: Redhat Linux7.2
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: iwdm at 21cn dot com
New email:
PHP Version: OS:

 

 [2002-01-19 05:38 UTC] iwdm at 21cn dot com
Hi, I want to setup a php with javabeans support.
My versions is Redhat Linux7.2+jdk1.3.1+php4.1.1
when i finished all the setup job, i found haven't the 'libphp_java.so' file. I searched all the directories, only found a libphp_java.la and libphp_java.a file. Who can tell me why?
my /etc/profile file relation setting is below:
PATH=$PATH:/usr/local/jdk1.3.1_02/bin:/usr/local/jdk1.3.1_02/jre/bin
PATH=$PATH:/usr/local/mysql/bin:/usr/local/etc/httpd/bin
CLASSPATH=/usr/local/jdk1.3.1_02/jre/lib/rt.jar
JAVA_HOME=/usr/local/jdk1.3.1_02


java.class.path = /usr/local/etc/php4/ext/java/php_java.jar:/usr/local/jdk1.3.1_02/jre/lib/rt.jar
java.home = /usr/local/jdk1.3.1_02
java.library = libjava.so
java.library.path = /usr/local/jdk1.3.1_02/jre/lib/i386:/usr/local/jdk1.3.1_02/jre/lib/i386/classic:/usr/local/jdk1.3.1_02/jre/lib/i386/native_threads
;extension_dir = /usr/local/lib/php/20010901
;extension = libphp_java.so


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-19 05:41 UTC] iwdm at 21cn dot com
Hi, I want to setup a php with javabeans support.
My versions is Redhat Linux7.2+jdk1.3.1+php4.1.1
when i finished all the setup job, i found haven't the 'libphp_java.so'
file. I searched all the directories, only found a libphp_java.la and
libphp_java.a file. Who can tell me why?
my /etc/profile file relation setting is below:
PATH=$PATH:/usr/local/jdk1.3.1_02/bin:/usr/local/jdk1.3.1_02/jre/bin
PATH=$PATH:/usr/local/mysql/bin:/usr/local/etc/httpd/bin
CLASSPATH=/usr/local/jdk1.3.1_02/jre/lib/rt.jar
JAVA_HOME=/usr/local/jdk1.3.1_02

My php.ini file is at /usr/local/lib/php.ini
java.class.path =
/usr/local/etc/php4/ext/java/php_java.jar:/usr/local/jdk1.3.1_02/jre/lib
/rt.jar
java.home = /usr/local/jdk1.3.1_02
java.library = libjava.so
java.library.path =
/usr/local/jdk1.3.1_02/jre/lib/i386:/usr/local/jdk1.3.1_02/jre/lib/i386/
classic:/usr/local/jdk1.3.1_02/jre/lib/i386/native_threads
;extension_dir = /usr/local/lib/php/20010901
;extension = libphp_java.so

 [2002-02-24 06:19 UTC] yohgaki@php.net
Please test with  PHP 4.1.1+JDK 1.2 and report the result back 
Please do not forget  updating PHP version. Thanks.
 [2002-02-28 18:34 UTC] Mike at ftl dot com
I am having the same problem....I'm running Solaris 8, JDK1.2, Apache 1.2.23, Php 4.1.2 and gcc 2.95.2.

 No matter what I can't get it to build libphp_java.so. It always builds libphp_java.a.

 Any help would be great.

 - Mike
 [2002-03-25 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-03-25 01:07 UTC] iwdm at 21cn dot com
Please test php4.0.6, that will be ok!
Maybe php4.1.x have bugs.
 [2003-04-02 02:16 UTC] annibale dot costantino at seceti dot it
I resolved the problem compiling the shared library with:
gcc -shared -o libphp_java.so ./ext/java/java.o
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Nov 24 10:01:23 2020 UTC