Hello
I'm having trouble calling a java application in my php code, through the php_java extension:
1) I changed the configuration in php.ini, and the files are in the address described in the link below:
Andbelowthephpcode,whichcallsaclassImadefortesting,asI'llneedtheextensionworkingtouseaclassfromabankthatworkswithticketgeneration.
<?php$javaPHP=newJava('TesteJP');$javaPHP->set("TEST");
echo "Java Method = " . $javaPHP->get();
?>
But when you access the browser, it returns a message as a restarted connection, or ERR_CONNECTION_RESET in the footer. And when I access the event viewer on the server, I encounter this error:
Faulting application Apache.exe version 2.0.58.200, faulting module
unknown, version 0.0.0.0, fault address 0x01495b58.
The error screen copy is just below:
However, at times when I try to access, the page loads but returns an error message:
Fatal error: java() [<a href='function.java'>function.java</a>]: Unable to
create Java Virtual Machine in H:\Desenvolvimento\sites\abra3\bol.php on
line 181