[wplug] Java question (SDK 1.4 and JRE 1.5)

Eric Hsiung ehsiung at bellatlantic.net
Mon Nov 15 20:16:49 EST 2004


On Mon, 2004-11-15 at 13:21, Chris Romano wrote:
> disclamer:
> I know very little as far as Java goes.  That includes the JREs and SDKs.
> 
> At work we have have a server running an old version of WebSphere and
> I want to try out Tomcat as a replacement.  I have a Slack 10 install
> that has the SDK 1.4 installled.  Tomcat's notes suggest using the 1.5
> JRE because it come with the Eclipse compiler.  Should I just up grade
> to SDK 1.5 or just download the 1.5 JRE and us that for Tomcat?  If I
> just download the JRE for tomcat only, how do I setup tomcat to use
> that only?   Tomcat's docs says that java has to be in your path.  I
> can't have 2 "java" is there, right?
> 
> Thanks,
> Chris Romano
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug

What version of Tomcat are you using? I'm familiar with 4.x, hope these
answers apply if you are using 5.x. First, Tomcat needs the JDK, not the
JRE, since it uses the Java compiler to compile JSP files into classes.
Second, either 1.4 or 1.5 will work, Tomcat can deal with either. And
lastly, yes it is possible to have 2 versions of Java installed. Tomcat
will uses whichever one the JAVA_HOME environment is pointing to. 

Hope this helps.


Eric



More information about the wplug mailing list