configuration of java support
| From: | anuradha | Date: | Tue, 06 Nov 2007 10:52:53 +0000 |
| Subject: | configuration of java support | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-440@lists.php.net to get a copy of this message | ||
Hi Support Team,
We need java support in php, we are using PHP v 5.2.3 and IIS v 5.1 , we
have included php_java.dll and php_java.jar to ext folder in php and configure php.ini -
java.class.path="C:\AppServ\php5\ext\php_java.jar"
java.home = "C:\Program Files\Java\jdk1.5.0_10\jre"
java.library = "C:\Program Files\Java\jdk1.5.0_10\jre\bin\server\jvm.dll"
extension=php_java.dll
when we exected below program
<?php
try {
$auth = new Java('java.lang.System');
print_r( $auth->getProperties());
}
catch (Exception $ie) {
echo $ie;
}
?>
we got this Error " PHP Fatal error: java() [<a
href='function.java'>function.java</a>]: Unable to create Java Virtual Machine
".
How we can call java classes, is there any other way. Please reply to this mail.
Regards,
Anuradha.
Software Engineer
JIVA Infotech
#710, 7th Floor, Swapnalok | SD Road | Secunderabad - 500003 | INDIA
T +91 40 55317108 33903322
US Lines 510.870.1555, 732.654.9068
UK Line 44 0207 101 9652
F 814-295-9808
M +91 98495 89193
E anuradha@jiva.co.in
www.jivainfotech.com