I tring to run myclass that is packed in myjar.jar file. In the php.ini I changed java.class.path=/home/java/myjar.jar so it would include my .jar file. I restarted my server.
The myjar.jar file contatins Hello class.
class Hello {
public void printName()
}
How do I connect from php to call that printName() function that is in the
Hello class.
Here is what I try and didn't work. Gives me class not found acception.
<?
$vsh = new Java("myjar");
echo " ".$vsh->printName()." OK ";
?>
Does anyone know how to connect to class file that is in the jar file.
Thanks,
Roman