php and java
| From: | (Edward Peloke) | Date: | Wed, 19 Nov 2003 18:43:59 +0000 |
| Subject: | php and java | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-170332@lists.php.net to get a copy of this message | ||
Ok,
First, let me say, I have looked at the manual and searched the past posts
but still can't get this to work. I also should say that this is my first
time trying to bridge php and java so this may be a stupid question....I
have a java class(DateUtil) in a package (testphp). I then took the package
and created a jar file from it and put the location of the jar file in my
php.ini file with the java settings.
In my php code, this code works fine:
$java = new Java("testphp");
$currentTime=$java->currentTimeMillis();
echo "The Time is:". $currentTime;
but if I try to access my class, I get errors that it can't instantiate
non-existent class:
$mydate=new DateUtil("testphp");
Am I doing something blatantly wrong?
Thanks,
Eddie