From: <php...@li...> - 2006-04-04 00:58:37
|
So if anyone has this problem, I solved it. Gcj was causing problems = with ClassNotFound and no matter what I did, nothing would solve the missing libraries/classpath issue. After switching to Sun's JDK/SDK package and tinkering around with a few tweaks in php.ini, it works as expected. =20 Make sure your test.php is showing everything (including backend) as = running properly. Regards, Brian ________________________________________ From: Brian Lucas [mailto:blu...@gm...]=20 Sent: Monday, April 03, 2006 2:32 PM To: 'php...@li...' Subject: lucene, gcj & ClassNotFoundException problems Hello.=A0 I=92ve been banging my head for the last day or two trying to = get Lucene to work with the bridge. It works successfully from command line. =A0However, in the bridge I continuously get the ClassNotFoundException. I=92ve done most everything listed in the INSTALL -- created and moved = jars into /usr/share/java, the php-ext directory, even the current directory = of the .php script -- and still get ClassNotFoundException. I=92ve also set the java.classpath in php.ini to include the = lucene-core.jar files without luck. --- error ---- Fatal error: Uncaught [o(Exception):"java.lang.Exception: CreateInstance failed: new searcher. Cause: java.lang.ClassNotFoundException: = Unresolved external reference: java.lang.NoClassDefFoundError: while resolving = class: searcher. -Unable to call constructor because it or one of its = parameters refer to the mentioned external class which is not available in the = current "java_require()" path. --- end error ---- new JavaClass(=91searcher=92) doesn=92t error, but new = Java(=91searcher=92) responds with the error above. Is there anything I=92ve overlooked or perhaps something in the log file = that could help me address this?=A0 I=92m using gcj, Suse 9.1, = php-java-bridge 3.x Thanks, Brian |