From: <php...@li...> - 2007-03-26 20:15:41
|
Hello, I've got a problem using the bridge. This little example presents it. The php file calls a method (QRCodeVerif) which creates a QRCodeDecoder from the qrcode.jar. This creation fails although the .jar is in the CLASSPATH (compilation is ok). <?php java_require('http://localhost/~nico/QRCodeVerif.jar'); $url = "/home/nico/public_html/upload/123aze.png"; $name_file = "123aze.png"; $myObj = new Java('QRCodeVerif'); $out = $myObj->verif($url); echo $out; ?> The .java : import jp.sourceforge.qrcode.codec.QRCodeDecoder; public class QRCodeVerif { public String verif(String url){ QRCodeDecoder decoder = new QRCodeDecoder(); // Problem with this line return url; } } Can someone resolve this problem ? Best regards, Nicolas _________________________________________________________________ Personnalisez votre Messenger avec Live.com http://www.windowslive.fr/livecom/ |