|
From: <php...@li...> - 2010-03-29 18:18:05
|
I saw the video and reconfigured my tomcat.
But the problem continue.
I put the jar file in the WEB-INF/lib folder inside the war file.
This is the code that Im using:
<?php
// Elimina los mensajes de error / Warning
ini_set('display_errors', 1);
require_once("java/Java.inc");
define ("JAVA_DEBUG", true);
try {
//java_require("INPREPAGO_CLIENT.jar");
java_autoload("INPREPAGO_CLIENT.jar");
} catch (JavaException $e) {
java_autoload("INPREPAGO_CLIENT.jar");
}
$prepago = new java("prepago");
echo '<h1>HOLA</h1><br>';
?>
Its is published in : http://186.4.24.228:8080/JavaBridge/ is the last one
PREPAGO
> I copied the jar file in javabridge WEB-INF/lib folder.
you need to copy it to your web application WEB-INF/lib directory
(your JavaBridge.war zip file). If you copy it into some file-system
directory, tomcat doesn't know that your web application has been
updated.
> The information that I received from the jar creator is that the
> "prepago" is a class, but I don't know how I can use it.
classes should go to the web application WEB-INF/classes directory.
Please see this video for details:
http://php-java-bridge.sourceforge.net/pjb/user-contributed/JavaEchoServer.g
if
Regards,
Jost Bökemeier
De: Berlington Barnett [mailto:bba...@gm...]
Enviado el: lunes, 29 de marzo de 2010 9:56
Para: 'php...@li...'
Asunto: RE: USING JAR
Hi Jost.
First, thank you for your answer.
Let me tell you, that Im a PHP programmer, and then I dont understand
very much the java concepts.
Let me give you more information about my problem:
· I copied the jar file in javabridge WEB-INF/lib folder.
· I have another jar that I can use in the examples: exceltest.jar
· The information that I received from the jar creator is that the
prepago is a class, but I dont know how I can use it.
If you need more information or the jar file, please tell me.
Thank you again. J
PD: Im not receiving the post answer in my email. Is it normal?
De: Berlington Barnett [mailto:bba...@gm...]
Enviado el: domingo, 28 de marzo de 2010 19:06
Para: 'php...@li...'
Asunto: RE: USING JAR
Hello.
Recently I installed JAVABRIDGE without many problem. In this moment is 100%
functionally.
I receive a jar file but I cant read it, and its very important that I
can access it.
If you want that I send you the jar file, please write me and Ill send it
you.
This is a sample to use it?
prepago.Inquire_Provider_Balance();
My PHP code is:
<?php
require_once("Java.inc");
define ("JAVA_DEBUG", true);
java_autoload("INPREPAGO_CLIENT.jar");
$prepago = new java("prepago");
?>
The result is:
Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance
failed: new prepago.
Thank you for any help that you can give me.
J
|