From: <php...@li...> - 2007-03-17 18:10:02
|
Hi, first of all, thanks a lot for your help. which problems do you have with the PHP/Java Bridge? I think the most important problem I'm having is importing my libraries. For example, with the easiest exacmple I tried to use (my class Test), I don't understand how should I import the jar file that I made. I tried using for example: java_require("file://usr/local/apache2/htdocs/tests_java/Test.jar"); java_require("http://localhost/tests_java/Test.jar"); java_require("http://172.16.0.75/tests_java/Test.jar"); java_require("Test.jar"); And none of them seemed to work. Which would be the most appropiate way? > > > > VM: 3.4.3@http://gcc.gnu.org/java/ Where should I define the VM that php/java bridge will work with? I actually installed the Java J2SE JDK from Sun on my box on /opt/jdk_ ... and that path is the one I set on the java.ini file. In any case, please do not use @java_reset(), the > CLASSPATH. In which documentation have you found this? > > Also it should never ever be necessary to create a > wrapper Java library. The PHP/Java Bridge protocol is > efficient enough so that these wrappers are *entirely* > obsolete. Ok, I'll remove the java_reset() calls. I read about php/java bridge in man= y places and tried to 'mix' the examples I got. I shouldn't touch the CLASSPATH, right? I'm not sure about what you mean when you say wrappers. Thanks for your support. Regards, Andr=E9s Gattinoni |