From: <php...@li...> - 2012-07-06 05:00:20
|
You can't. See FAQ. You have successfully added JavaBridge classes to Java. Now do the same with your own classes. Regards, Jost Boekemeier Am 05.07.2012 20:17 schrieb <php...@li...>: > Please, I am in desperate need of help. I am new to PHP/Java Bridge and I > am getting the following error: > > [[o:Exception]:"java.lang.Exception: CreateInstance failed: new HelloWorld. > Cause: java.lang.ClassNotFoundException: HelloWorld VM: 1.7.0_04@ > http://java.oracle.com/" at: #-10 > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711) > #-9 > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556) > #-8 java.lang.Class.forName0(Native Method) #-7 > java.lang.Class.forName(Class.java:264) #-6 > php.java.bridge.Util.classForName(Util.java:1518) #-5 > > > When I try to execute this command: > > $world = new java("HelloWorld"); > echo $world->hello(array("from PHP")); > > I am able to run the program from the command prompt but I am unable to > incorporate it as a stand alone in my application. > > Also, how can I change the PHP/Java Bridge VM CLASSPATH? > > Thanks > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |