Check the Apache error_log to see if you got any exception or error loading
the jar.
You're positive that the url http://localhost/~nico/QRCodeVerif.jar works,
right?
Regards,
Andr=E9s Gattinoni
On 3/26/07, php...@li... <
php...@li...> wrote:
>
> 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 =3D "/home/nico/public_html/upload/123aze.png";
> $name_file =3D "123aze.png";
>
> $myObj =3D new Java('QRCodeVerif');
>
> $out =3D $myObj->verif($url);
> echo $out;
> ?>
>
> The .java :
>
> import jp.sourceforge.qrcode.codec.QRCodeDecoder;
>
> public class QRCodeVerif {
>
> public String verif(String url){
> QRCodeDecoder decoder =3D new QRCodeDecoder(); // Prob=
lem
> with this line
> return url;
> }
> }
>
> Can someone resolve this problem ?
>
> Best regards,
>
> Nicolas
>
> _________________________________________________________________
> Personnalisez votre Messenger avec Live.com
> http://www.windowslive.fr/livecom/
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D=
DEVDEV
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
--=20
Andr=E9s Gattinoni
(=AF`=B7._.=B7[El Barto(r)]=B7._.=B7=B4=AF) (...)
|