|
From: <php...@li...> - 2007-05-24 10:33:31
|
Hi to all I have installed properly php-java bridge and also test the testjava.php file , Its working fine.Now I did edit php.ini file with some jar like this. java.class.path=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/sfa.jar:/usr/local/lib/php/extensions/no-debug-non-zts-20020429/servlet.jar:/usr/local/lib/php/extensions/no-debug-non-zts-20020429/jnet.jar:/usr/local/lib/php/extensions/no-debug-non-zts-20020429/jcert.jar:/usr/local/lib/php/extensions/no-debug-non-zts-20020429/jsse.jar:/usr/local/lib/php/extensions/no-debug-non-zts-20020429/cryptix32.jar and put the jar in proper directory of php.but when I am running my php application i am getting this error. Warning: java.lang.ClassNotFoundException: com.opus.epg.sfa.java.BillToAddress in /home/odrindia/public_html/icici_payment/php/Sfa/PostLibPHP.php on line 88 Warning: java.lang.ClassNotFoundException: com.opus.epg.sfa.java.ShipToAddress in /home/odrindia/public_html/icici_payment/php/Sfa/PostLibPHP.php on line 89 Warning: java.lang.ClassNotFoundException: com.opus.epg.sfa.java.Merchant in /home/odrindia/public_html/icici_payment/php/Sfa/PostLibPHP.php on line 90 Warning: java.lang.ClassNotFoundException: com.opus.epg.sfa.java.MPIData in /home/odrindia/public_html/icici_payment/php/Sfa/PostLibPHP.php on line 91 Warning: java.lang.ClassNotFoundException: com.opus.epg.sfa.java.CardInfo in /home/odrindia/public_html/icici_payment/php/Sfa/PostLibPHP.php on line 92 Warning: java.lang.ClassNotFoundException: com.opus.epg.sfa.java.PGResponse in /home/odrindia/public_html/icici_payment/php/Sfa/PostLibPHP.php on line 93 Warning: java.lang.ClassNotFoundException: com.opus.epg.sfa.java.PostLib in /home/odrindia/public_html/icici_payment/php/Sfa/PostLibPHP.php on line 94 Fatal error: Call to a member function on a non-object in /home/odrindia/public_html/icici_payment/php/Sfa/PostLibPHP.php on line 124 Can anybody siggest me why this is happening.. -- Thanks and Regards Sharad Singh Sr. Project Associate EE, IIT Kanpur Mob:+91- 9450 328 117 website: http://www.brihaspatisolutions.co.in Accessing Brihaspati: http://202.141.40.217:8080/brihaspati/servlet/brihaspati Login:guest Password: guest |
|
From: <php...@li...> - 2007-05-24 12:01:18
|
> Warning: java.lang.ClassNotFoundException: I think you forgot to require the .jar file(s). I usually keep the java libraries in the $HOME/libs directory, this is easier than require'ing the libraries for each php script. ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
|
From: <php...@li...> - 2007-05-24 12:05:33
|
No I am using gcj java and php ,i did put the jar in extension directory , >> Warning: java.lang.ClassNotFoundException: > > I think you forgot to require the .jar file(s). > > I usually keep the java libraries in the $HOME/libs > directory, this is easier than require'ing the > libraries for each php script. > > > > > > > > > ___________________________________________________________ > Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: > http://mail.yahoo.de > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Thanks and Regards Sharad Singh Sr. Project Associate EE, IIT Kanpur Mob:+91- 9450 328 117 website: http://www.brihaspatisolutions.co.in Accessing Brihaspati: http://202.141.40.217:8080/brihaspati/servlet/brihaspati Login:guest Password: guest |
|
From: <php...@li...> - 2007-05-24 12:16:24
|
> i did put the jar in
> extension directory
Then java_require("yourJar.jar;...") should work.
__________________________________ Yahoo! Clever: Stellen Sie Fragen und finden Sie Antworten. Teilen Sie Ihr Wissen. www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-05-24 12:41:01
|
I could not understand your meaning ,Plz can you write it in detail.
>> i did put the jar in
>> extension directory
>
> Then java_require("yourJar.jar;...") should work.
>
>
> __________________________________ Yahoo! Clever: Stellen Sie
> Fragen und finden Sie Antworten. Teilen Sie Ihr Wissen.
> www.yahoo.de/clever
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
--
Thanks and Regards
Sharad Singh
Sr. Project Associate
EE, IIT Kanpur
Mob:+91- 9450 328 117
website: http://www.brihaspatisolutions.co.in
Accessing Brihaspati:
http://202.141.40.217:8080/brihaspati/servlet/brihaspati
Login:guest Password: guest
|
|
From: <php...@li...> - 2007-05-24 13:20:42
|
I mean: Did you require the java libraries you need?
If so, you shouldn't get a ClassNotFoundException.
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail
|
|
From: <php...@li...> - 2007-05-24 13:39:44
|
Yes I have and it is in proper class path and also edit php.ini file also .but it is not reading from the application > I mean: Did you require the java libraries you need? > > If so, you shouldn't get a ClassNotFoundException. > > > > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen > SieŽs mit dem neuen Yahoo! Mail. www.yahoo.de/mail > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Thanks and Regards Sharad Singh Sr. Project Associate EE, IIT Kanpur Mob:+91- 9450 328 117 website: http://www.brihaspatisolutions.co.in Accessing Brihaspati: http://202.141.40.217:8080/brihaspati/servlet/brihaspati Login:guest Password: guest |
|
From: <php...@li...> - 2007-05-24 14:03:44
|
What does
<?php
if(!extension_loaded("java"))
require_once("http://localhost:8080/JavaBridge/java/Java.inc");
java_require("yourMercantLibrary.jar");
$Merchant=new
JavaClass("com.opus.epg.sfa.java.Merchant");
echo $Merchant;
?>
display?
> Yes I have and it is in proper class path and also
Unlikely.
__________________________________ Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-05-24 19:05:16
|
Hi,
> java.class.path=...
this is probably a misunderstanding. Neither gcj ("GNU
Java") nor the PHP/Java Bridge support such an option.
In which documentation have you found it?
When you use gcj, you usually compile your java
library to native code (into a shared libary) and link
it into the running php interpreter. Please see the
Linux lucene or itext example libs.
However, I recommend to use the J2EE server or servlet
engine as a back end and to use the pure PHP/Java
implementation of the bridge. Depending on your PHP
version (php4 or php5.0) you will also need to
download the legacy binary ("java.so" or
"php_java.dll"). This binary is obsolete since php
5.1.4, of course.
In any case, the java_require() procedure allows you
to link your Java libraries or native code into the
running PHP binary, please see our documentation for
details.
Regards,
Jost Boekemeier
__________________________________ Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever
|