Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic