By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,454 Members | 1,803 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,454 IT Pros & Developers. It's quick & easy.

Problem in Integrating Java and PHP

P: 4
Hi guys,

i am trying to integrate the PHP and Java.

Actually i am trying to create the instance of a java class in php file and use it's methods.

My environment is WinXP/Apache 1.3/ PHP 5/jdk 1.5

I have done the configuration changes in the php.ini file as below;
extension=php_java.dll
java.class.path="C:\wamp\php\ext\php_java.jar;C:\P rogram Files\Java\jdk1.5.0_06\jre\lib"
java.home="C:\Program Files\Java\jdk1.5.0_06\bin"
java.library="C:\Program Files\Java\jdk1.5.0_06\jre\bin\server\jvm.dll"
java.library.path="C:\wamp\php\ext;"


The files are in the metioned place.

But, whenever i am trying to run the php file from the browser, it returns the
"Page cannot be displayed" and in the down it shows,
"Cannot find server or DNS Error"

Before that, the Visual Studio Debugger opens and shows the exception in apache.exe
that is "Unhandled exception at 0x00f9678f in Apache.exe: 0xC0000005: Access violation writing location 0xab000201."

immediately the browser displays "the page cannot be displayed".


i know so many people r working in this concept . can anyone help me.

With regards,
Subbukumararaja
Dec 19 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

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