|
From: <php...@li...> - 2008-02-13 20:00:07
|
Hi,
I'm newby in PHP and PHP/Java bridge, and I have some doubt about it. It seems that I can not instantiate Java class from PHP in case that class imports some external library, regardless that library is available in jar file that I use. Here is the PHP code:
...
require_once('http://localhost:8080/JavaBridge/java/Java.inc');
java_require("moodleLOCMapper v0.003.jar");
$repository=new Java("depths.moodle.RepositoryFactory");
...
Java code
package depths.moodle;
import org.openrdf.sesame.repository.SesameRepository;
import depths.moodle.repository.Repository;
public class RepositoryFactory {
...
And here is the error:
javax.servlet.ServletException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new depths.moodle.RepositoryFactory. Cause: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: org/openrdf/sesame/query/QueryEvaluationException. -- Unable to call constructor, see the README section "Java platform issues" for details. VM: 1.6.0_04@http://java.sun.com/" at:
Did I make some mistake here, or I have to create facade class in order to access this class?
Thanks
Zoran
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
|