473,396 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

php5 java integration

1
Hi,

I'm looking for someon who can help me with a problem with the php/java integration...It just won't work..

Here are some data to describe the software/system I'm working with:
OperatingSystem: Windows Xp
Webserver: Apache 2.2.3
PHP: PHP5.2
Java: j2sdk1.4.2_12

I found a possible integration on http://be.php.net/java. Idownloaded pecl-5.2.1-Win32.zip and extracted it in the extension directory of PHP. Next I modified my php.ini file and added:

[Java]
extension=php_java.dll
java.library.path=C:\ms4w\Apache\php\ext
java.class.path="C:\ms4w\Apache\php\ext\php_java.j ar"
java.home=C:\j2sdk1.4.2_12\
java.library=C:\j2sdk1.4.2_12\jre\bin\server\jvm.d ll

Now when I try to open a webpage with the new Java() statement, there's always an error (wich appears in a new window) saying CGI/FastCGI has encountered a problem and has to be terminated...

Does anybody know how to fix this...or what's causing the error?
thx
kristien
May 1 '07 #1
3 4931
Hi,

I'm looking for someon who can help me with a problem with the php/java integration...It just won't work..

Here are some data to describe the software/system I'm working with:
OperatingSystem: Windows Xp
Webserver: Apache 2.2.3
PHP: PHP5.2
Java: j2sdk1.4.2_12

I found a possible integration on http://be.php.net/java. Idownloaded pecl-5.2.1-Win32.zip and extracted it in the extension directory of PHP. Next I modified my php.ini file and added:

[Java]
extension=php_java.dll
java.library.path=C:\ms4w\Apache\php\ext
java.class.path="C:\ms4w\Apache\php\ext\php_java.j ar"
java.home=C:\j2sdk1.4.2_12\
java.library=C:\j2sdk1.4.2_12\jre\bin\server\jvm.d ll

Now when I try to open a webpage with the new Java() statement, there's always an error (wich appears in a new window) saying CGI/FastCGI has encountered a problem and has to be terminated...

Does anybody know how to fix this...or what's causing the error?
thx
kristien
Hi Kristien
I am also stuck on that.
try to refer this link, it might clear your doubt.

http://bugs.php.net/bug.php?id=29134&edit=1

I dont know where you got the .jar file from.
Because its not available php5 extensions.
But if you are using the old .jar file might likely not work.
The better way is to compile your classes explicitly and then start the program.
Hope this helps
Varun
May 28 '07 #2
Hi Kristien
I am also stuck on that.
try to refer this link, it might clear your doubt.

http://bugs.php.net/bug.php?id=29134&edit=1

I dont know where you got the .jar file from.
Because its not available php5 extensions.
But if you are using the old .jar file might likely not work.
The better way is to compile your classes explicitly and then start the program.
Hope this helps
Varun

Just to add some more

http://bugs.php.net/bug.php?id=23145&edit=1

i dont think you need to mention jvm.dll .
I am still trying to make it work. If you get something please let me know too :).

varun
May 28 '07 #3
Hi,

use this link .....

http://blog.taragana.com/index.php/a...mcat-4x-or-5x/

this will help u a lot..........................
Mar 16 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

28
by: mikel | last post by:
Hello, php5 is in everybodies mouth - but what are the *real* advantages and plus' compared to php4? mikel
1
by: OmyGOD | last post by:
I am trying to bridge Java and PHP. We know there's php_java.dll in PHP4, but this module is not bundled in PHP5 packages. And there's no way to download this module. I tried to use php_java.dll...
9
by: Steven M. Scotten | last post by:
Hi-- I seem to have the PHP Java Bridge (2.0.5 built from tarball) working with PHP 5.0.3 (also built from tarball) on my Fedora Core 1 server with Apache 2.0.50 and I'm pretty excited about it...
0
by: Rithish | last post by:
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...
1
by: Rithish | last post by:
Has anyone sucessfully compiled PHP5 with JAVA support? Response is appreciated. Regards, Rithish.
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
by: israelekpo | last post by:
phpPaypalPro version 0.2.0 Released The second version of phpPaypalPro has been released. phpPaypalPro is an object-oriented framework developed in PHP5 to integrate easily with the Website...
14
by: Jeff | last post by:
I'm working on a server that is running PHP4. I'd like to upgrade this so I can use the PHP5 code I have already. What kind, if any, problems will I have with the existing PHP code base? I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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
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...

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.