I am sorry for posting this in advance.
I need help setting up, I have gone over quite a few things - and need =
to confirm it works before I configure code deployment on centos. Right =
now:
OS: winxpsp2
PHP vi apache: 5.2.5
PHP vi Tomcat: 5.2.1
Apache: 2.2
J2EE: Tomcat 6
I have deployed the javabridge into Tomcat,=20
phpinfo() via apache reports 5.2.5, however JavaBridge reports 5.2.1 via =
Tomcat?
As I understand it, my php.ini should have nothing for java module =
settings.
My php page is as follows
<?php
require_once("java/Java.inc");
=09
$SystemClazz =3D Java("java.lang.System");
$date =3D new Java("java.util.Date");
echo $date->toString() . "\n";
$system =3D new Java("java.lang.System");
echo "OS: ".$system->getProperty("os.name")."\n";
$math =3D new Java("java.lang.Math");
echo "PI: ".$math->PI."\n";
$jspider =3D new com_dang("arg1","arg2");
echo "end";
?>:
Where com_dang is a class in a jar loaded into the tomcat/lib folder. =
the Date and System calls produce expected result.
However, the only way I can instantiate a class of com.dang is by =
adding:
java_autoload("D:\appz\java\dang.jar");
=09
after require_once("java/Java.inc");
(which of course contains the class com.dang and is located @ =
D:\appz\java\dang.jar)
I need to confirm a call to com.dang through Tomcat:8080 without =
requiring local apache php load.
Sorry again.
~tim
|