Re: [PHP4BETA] strange effect when calling Java

[email protected] ("Christian Wenz")
Newsgroups php.version4
Message-ID <008001bfc41a$688c9260$e21abb81@christian>
Hi Sam,

thanks, I think you may be right. I think that JDK1.x didn't copy all its
important files (java.exe, javai.dll= into the Windows directory, so there
may well be an old version. Thanks for the pointer!

Regards
Christian

----- Original Message -----
From: <[email protected]>
To: "Christian Wenz" <[email protected]>
Cc: <[email protected]>
Sent: Monday, May 22, 2000 7:01 PM
Subject: Re: [PHP4BETA] strange effect when calling Java


>
>
> 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.