Title: RE: jdk versus jre
Oops, maybe I sounded too authoritative. :) 
 
I honestly don't know whether these two are different or the same.  I just know from first-hand experience that the files that constituted the JRE were moved around a little from 1.1 to 1.2.  And the online doc explained the CLASSPATH issue, which I hope turns out to be the problem that you're seeing.
 
Jay
-----Original Message-----
From: Don Pierce [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 09, 2000 11:21 AM
To: Java Apache Users
Subject: RE: jdk versus jre

Is there a difference between the jre.exe in the JDK1.1.8 download  versus
the jre1.1.8 download?  Do both utilize the Symantec JIT?
 
Don
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Burgess, Jay
Sent: Wednesday, August 09, 2000 8:52 AM
To: 'Java Apache Users'
Subject: RE: jdk versus jre

No.  For JDK 1.1, which is what he is using, JRE.EXE is a perfectly valid interpreter to run.  As the online doc says "The jre command executes Java class files."

I can only guess that you are referring to JDK 1.2, in which Sun seems to have moved all of the "JRE" files, including JRE.EXE, out of JAVA/BIN into their own directory. In the process, they also renamed JRE.EXE to JAVA.EXE.

Now, as far as the original problem is concerned, the JDK 1.1 doc for the JRE tool says:

"On Windows platforms, the jre tool ignores the CLASSPATH environment variable. The -cp option should be used to specify an application's class path."

So while I haven't confirmed this, I'm guessing that this is your problem.  You may have to add the classpath info via "-cp" as arguments in JSERV.PROPERTIES, or else go back to JAVA.EXE.

Jay

-----Original Message-----
From: Michael Weissenbacher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 09, 2000 10:31 AM
To: 'Java Apache Users'
Subject: RE: jdk versus jre


----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

JRE.exe IS NOT the right file to execute! you MUST use java.exe! the jre is
simply the jdk without compiler, just the runtime envirionment. most
probably you'll find the jre in a own directory and there is a second
java.exe

michael

-----Original Message-----
From: Don Pierce [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 09, 2000 5:23 PM
To: Java-Apache-Users
Subject: jdk versus jre


----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

My config is on NT4
Apache 1.3.13
JServ 1.1.1
JDK1.1.8

I want to move to jre for my production environment
and did the following in my jserv.properties:
I changed this line
wrapper.bin=c:\jdk1.1.8\bin\java.exe
to this line
wrapper.bin=c:\jdk1.1.8\bin\jre.exe

Now when I start Apache i get this in the Apache error.log:

Class not found: org.apache.jserv.JServ

Everything was working just fine before the change so I
do not understand why jre cannot find the class anymore?

FYI here is my classpath wrapper entries:

wrapper.classpath=d:\apache jserv\ApacheJServ.jar
wrapper.classpath=d:\jsdk2.0\lib\jsdk.jar
wrapper.classpath=D:\JTurbo4-20\JTurbo.jar


Don


 

Reply via email to