PHP JAVA bridge class not found complete steps if anyone know as path error -
PHP JAVA bridge class not found complete steps if anyone know as path error -
well, question simple have 1 class file called apples.class , have apples.jar file.
now apples.class file set within c:\program files\apache software foundation\tomcat 7.0\webapps\javabridge\web-inf\classes\apples.class
second apples.jar file set within c:\program files\apache software foundation\tomcat 7.0\webapps\javabridge\web-inf\lib\apples.jar
now, trying create object of apples.class file getting error of
java.lang.exception: createinstance failed: new apples. cause: java.lang.classnotfoundexception: apples
and code is:
require_once("java/java.inc"); exec("java apples", $output); print_r($output);//working javaphp bridge fine $myobj = new java("apples"); //not creating object , homecoming me above error
so if please help me out letting me know missing , how can create object of apples class. , sec main question set files in right place why still error.
note: question haven't found anywhere , wherever found it's not perfect steps highly appreciate if can provide step step , please don't create question similar other question it's not.
class names case sensitive. need capital j in java ...
$myobj = new java("apples");
you might have include bundle in phone call well, eg;
$myobj = new java("com.fruit.apples");
hope helps.
java php classnotfound
Comments
Post a Comment