One server has two jdk, one is jdk1.4 and the other is jdk1.6. Tomcat versions: tomcat and tomcat. All of them are installed on one server. This conflict has taken a long time, which makes it a headache. atat5.0 matches jdk1.4, tomcat6.0 matches jdk1.6, and 1. first, specify catalina in the jdk tomcat/bin directory that matches tomcat. bat setclasspath. to open the bat files in notepad, add a set JAVA_HOME = jdk path to add the matching path of tomcat. 2. However, the project in earlier versions of tomcat seems to be okay, but some features are still available after the server is started. After checking for a long time, it is still the conflict between JDK 1.6 and JDK. For earlier versions of Tomcat, you must set the server startup sequence before Tomcat is started. 1. Open the registry before tomcat5.0 is enabled and set tomcat6.0. HKEY_LOCAL_MACHINE-> SYSTEM-> Services-> Create a multi-string value named DependOnService and set it to tomcat5.0 tomcat6.0.