Hi there,
Sorry for my english. I'm spanish.

I'm trying to run my Java classes through php. I've tried all the possible
settings in my php.ini file (I've read everything in php.net), and althought
php doesn't crash, the Java code does nothing. I get no errors neither
warnings but the Java classes seems not to run. And when I run that classes
from the command line they work.
However, if I run this piece of code (that it's very similar to mine):

<?php
$systemInfo = new Java("java.lang.System");
print "Total seconds since January 1, 1970:
".$systemInfo->currentTimeMillis();
?>

It works perfectly!!! Why my classes don't work? I'm sure it isn't the
CLASSPATH. And PHP settings in php.ini seems to be OK.

And there is more. If after a while, I reload the page I get a PHP Fatal
Error because it can't create a JVM. I've seen this issue in lots of sites
but it seems that no-one has solved it on Windows. Did anybody find a
solution?

I've also tried to run "java myclass" from "system" and "exec" PHP commands
with no success.

Can anybody help me, please?

Thanks a lot.

Running:        W2K, SP3.
                Apache 1.3.27.
                PHP 4.3.1.
                J2RE v1.4.1_01.

Isaac


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to