$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: Select all
but i get this error:
їcode]Fatal error: Unable to load Java Library C:\PHP\javaclass, error: The specified module could not be found. in C:\Program Files\Apache Group\Apache2\htdocs\test\java2.php on line 3what to do?
this is my php.ini :
Code: Select all
їJava]
java.class.path = "C:\PHP\extensions";
java.home = "C:\j2sdk1.4.1_06\bin";
java.library = "C:\PHP\javaclass";
java.library.path = .\