File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes same machine: will JDK1.5 conflict with JDK1.4? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "same machine: will JDK1.5 conflict with JDK1.4?" Watch "same machine: will JDK1.5 conflict with JDK1.4?" New topic
Author

same machine: will JDK1.5 conflict with JDK1.4?

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
Now I have application running on top of JDK1.4. I have to keep this, can't change. But I want to develop another j2ee application on top of 1.5.

My question is, if I install JDK 1.5 in the same machine, will JDK1.5 conflict with JDK1.4? If one machine has JRE1.5 and JRE1.4, how will tomcat choose JRE version ?

The bottom line is I have to keep my existing application running.

Thanks.
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

I believe this is simply a matter of which Java version is listed first in your PATH variable.

But I'm moving this topic to the Tomcat forum for expert consideration.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I've had no problem.

On *nix boxes and windows machines, if started from the batch scripts, you control which Java version Tomcat uses with your JAVA_HOME environment variable.

On Windows, if installed with the .exe installer, the path to Java is stored in a registry key.

In either case, having multiple Java versions shouldn't matter.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
Thanks.

If my tomcat is unzip version, how could I direct tomcat to JRE1.5 ? I think we could write some DOS batch script, right? Anybody had a try before?

Thanks.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You don't have to write one.

There is already one in tomcat/conf called startup.bat.
You just need to set your JAVA_HOME environment variable and run it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: same machine: will JDK1.5 conflict with JDK1.4?