HI friends,
i have a problem when i call a java method from php code, i saw php.net site ifollow all thr steps , but i got the classNotFoundEx ceptions.
my code is like this
JavaClass
PhpCode
I am using vm php bridge jar file.
if any one know please tell me.
Thanks and Regards
swamy
i have a problem when i call a java method from php code, i saw php.net site ifollow all thr steps , but i got the classNotFoundEx ceptions.
my code is like this
JavaClass
Code:
public class SampleStatic
{
public static void main(String args[])
{
System.out.println("saibaba");
}
public void sample(int arg)
{
System.out.println("hai"+arg);
}
}
Code:
<?php
require_once("Java.inc");
$sample = new Java("SampleStatic");
$sample->sample(10);
?>
if any one know please tell me.
Thanks and Regards
swamy
Comment