How do I configure which version of Java Tomcat 6 will use?

Posted on 2010-01-08
Last Modified: 2013-12-02
The original setup was Tomcat 6 installed on a Windows 2003 server with Java 1.5, we had to upgrade the Java to 1.6 for an application but Tomcat is still pointing to Java 1.5. When I do a java -version it is 1.6, how do I force Tomcat to use java 1.6?
Question by:peddiesd
    LVL 7

    Expert Comment

    Dear peddiesd,

    You need to setup JAVA_HOME environment variable to show to the new path of java.

    Here is a link how to setup the JAVA_HOME variable.

    I hope this is the case.

    Accepted Solution

    Thanks Icenick

    I set the Java_home variable but still was a no go. I ended up reinstalling Tomcat which seemed to fixed the issue.
    LVL 7

    Expert Comment

    Did you restart you pc after setting Java_HOME? Did you restart tomcat?

    Anyway, I am glad that it worked after all.

    Author Comment

    Tomcat yes, server no, but I did also do a 'set' from the command line for JAVA_HOME.
    LVL 27

    Expert Comment

    yes I did also reinstall tomcat, but checkout the file tomcatw.exe in the bin folder, I think you can configure the proper jave dll there.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    -Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
    There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now