i want to call java from php:
$salesTax = new Java(“SalesTax”);
// Don’t forget to typecast in order to
// conform with the Java method specifications.
$price=100;
$tax=18;
$price = (double) $price;
$tax = (double) $tax;
print $salesTax->SalesTax($price, $tax);
Code:
but i get this error:
[code]Fatal error: Unable to load Java Library C:PHPjavaclass, error: The specified module could not be found. in C:Program FilesApache GroupApache2htdocstestjava2.php on line 3
and i have compiled the class and its working ok!
what to do?
this is my php.ini :
[code][Java]
java.class.path = “C:PHPextensions”;
java.home = “C:j2sdk1.4.1_06bin”;
java.library = “C:PHPjavaclass”;
java.library.path = .