473,503 Members | 2,148 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP5-JAVA integration - no libphp_java.so file creation

OS : RHEL3
PHP version : 5.0.2
JDK version : 1.5.0.06

I have been trying to compile PHP with JAVA support for the past week,
and all I have left to do is take a noose and hang myself. Of all the
articles, tutorials, posts that I have seen and browsed ( none of them
on PHP5+ though ), all of them speak of a libphp_java.so/java.so file
being created. However, no such file is being created. I have tried
almost all the tips and tricks that have been suggested, but to no
avail.

JDK location : /opt/jdk1.5/
PHP location : /home/phprpms/php-5.0.2/

(1)I add the following lines to /etc/ld.so.conf
/opt/jdk1.5/jre/lib/i386
/opt/jdk1.5/jre/lib/i386/server

/opt/jdk1.5/jre/lib/i386 is the location of libjava.so and libverify.so
/opt/jdk1.5/jre/lib/i386/server is the location of libjvm.so

(2) I add the following to /etc/profile
export LD_LIBRARY_PATH=/opt/jdk1.5/jre/lib/i386

(3)On cmd line I run
export LD_LIBRARY_PATH=/opt/jdk1.5/jre/lib/i386

(4) I run PHP configure with the following options :
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
--libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var
--sharedstatedir=/usr/com --mandir=/usr/share/man
--infodir=/usr/share/info --cache-file=./config.cache
--with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d
--enable-memory-limit --with-apxs2=/usr/sbin/apxs
--enable-force-cgi-redirect --enable-cli --enable-cgi --enable-sysvmsg
--with-java=/opt/jdk1.5

PHP compiles successfully, but no libphp_java.so file is created.

The next step is to update PHP.ini with the extension configs. However,
step 4 is supposed to create a libphp_java.so or java.so file; which it
doesn't. I have looked through so many resources and articles now that
my roommates say I mumble 'php' in my dreams. :o)

Maybe I am not looking in the right places. Can someone tell me where I
am going wrong? Or point me to a resource which speaks about PHP5 and
JAVA integration? I greatly appreciate any help extended.

Regards,
Rithish.

Mar 31 '06 #1
0 2549

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3673
by: Christoph Nothdurfter | last post by:
Hallo! I was wondering if my PHP4-Scripts will run under PHP5 (Haeven't tried the beta yet). Does anybody know? Thank you, -Christoph
8
2944
by: Rob Ristroph | last post by:
I have tried out PHP 5 for the first time (with assistance from this group -- thanks!). The people I was working with have a site that uses lots of php objects. They are having problems with...
0
1539
by: Berislav Lopac | last post by:
Has anyone thought of developing a library aimed for PHP4 which would give the kind of functionality that PHP5 has when it comes to working with XML...
11
10564
by: neur0maniak | last post by:
Hi, I've been eager to try out PHP5, so I've dumped it on my little dev machine. It's running WinXP with IIS5. I've put the php-cgi.exe in the "mappings" page as I'm used to doing with PHP4....
12
3589
by: Sarah Tanembaum | last post by:
Though I installed MySQL5 and PHP5, how come my phpinfo() shows as follow: MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 3.23.57 <<<<<<<<<<<<<<< ...
0
1998
by: Dave Pham | last post by:
I just cleaned my comp, and I am trying to re-config my webserver... I am trying to setup apache 2 so it runs both php4 and php5, I also have two instances of mysql running. I know this can be...
1
2751
by: dk_sz | last post by:
Is it just me... Or is PHP5 XML very limited? Or am I missing something very obvious? Any way to use PHP4 Dom XML in PHP5? Does anyone know why support for it was dropped? I have following...
5
2139
by: Aziz | last post by:
Hi, I've recently contacted technical service of a web hosting company and asked them wheter or not they're gonna upgrade to PHP5 and MySQL5. Here's a quote from their response which confused me...
3
3282
by: xhe | last post by:
I have just upgraded my php version form php4 to php5. and I met this problem, and don't know if you know the solution. My site was written in PHP4, and most parts can be running smoothly in PHP5,...
8
2299
by: FFMG | last post by:
Hi, I am slowly moving my code to php5. But I would like to make it backward compatible in case something bad happens, (and to make sure I understand what the changes are). The way the...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5596
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.