How to change Java runtime environment for Tomcat in Eclipse
- Details
- Written by Nam Ha Minh
- Last Updated on 07 August 2019   |   Print Email
Eclipse/Tomcat version | JRE version |
Eclipse Juno 4.2.2 | JRE 7 |
Tomcat v6.0 | JRE 6 |
1. Specify JRE version when adding new Tomcat instance
Right click in Servers view, select New > Server:


2. Specify JRE version for an existing Tomcat instance
In this way, select Window > Preferences (or shortcut: Alt + W + P) from Eclipse’s main menu. In the Preferences dialog, expand the branch Server > Runtime Environments, select a Tomcat version in the Server runtime environments list, and click Edit button:

Related Tutorials:
Other Eclipse Tutorials:
- How to use Eclipse IDE for Java EE Developers
- How to create, build and run a Java Hello World program with Eclipse
- How to generate Javadoc in Eclipse
- How to create WAR file for Java web application in Eclipse
- How to create JAR file in Eclipse
- How to pass arguments when running a Java program in Eclipse
- How to create Java web project with Maven in Eclipse
- 25 Eclipse Shortcut Keys for Code Editing
- How to add custom Ant build script to Eclipse project
- How to Add Copyright License Header for Java Source Files in Eclipse
About the Author:

Comments