Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2007

Tip: Looking for answers? Try searching our database.

How to tell Tomcat 6, that JVM has changed

Thread view: 
fmbsg-hallo@yahoo.de - 16 Sep 2007 09:51 GMT
Hi all,

I've got fresh installation of a Tomcat 6.0.14 Binary distribution on
a W2K-system ("System 2"). Example and status pages work fine. After
"deploying" a WAR-file from a different PC ("System 1"), where it
worked fine on a second Tomcat installation, I received a
java.lang.UnsupportedClassVersionError in catalina.log of System 2.
This seems correct to me, since I compiled in Eclipse "compliant to
Java 6" on System 1, while System 2 was running a 1.5.0_06-JVM.

I've downloaded a brand new JRE from SUN and installed it on System 2.
Typing in "java -version" now gives 1.6.0_02 on the command line. But
Tomcat still shows 1.5.0_06 in his server status pages. Although after
reboot and so on.

How do I tell Tomcat to use the newer JRE ???

Any hints appreciated...

Frank
Manish Pandit - 16 Sep 2007 12:31 GMT
On Sep 16, 1:51 am, fmbsg-ha...@yahoo.de wrote:
> Hi all,
>
[quoted text clipped - 16 lines]
>
> Frank

Before you start tomcat, set environment variable JAVA_HOME to point
to the new installation.

set JAVA_HOME=<Path to the new JDK/JRE>

To make sure..

echo %JAVA_HOME%

Make sure the path is what you expected. Then start tomcat

startup.bat

-cheers,
Manish


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.