Re: [PHP4BETA] strange effect when calling Java

[email protected]
Newsgroups php.version4
Message-ID <[email protected]>

Christian Wenz wrote:
> If I call this script via http://localhost/php4/jver.php , I get
> the following output:
> Java version=1.1.3
>
> I also have Tomcat 3.1 running. If I copy my php4 script directory
> into  the webapps/examples directory and call the script via
> http://localhost:8080/examples/php4/jver.php, I get the following
> output:
> Java version=1.1.8

It is possible that they could be finding and loading two different JVMs.

I presume that the first example is using ext_java, in which case it will
look in your path for javai.dll (jvm.dll for JDK 1.2+ users).  With Tomcat,
you will use the JVM associated with the java.exe that you use to launch
Tomcat.

As many products ship JVMs these days, it is possible that you are finding
another one and using it...

- Sam Ruby
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.