Today, I have a little bit of blood, suddenly think about the entire Struts application, so I bought "Mass Struts: Based on MVC-based Java Web Design and Development", seeing the second chapter, there is a very simple example, so I feel Take it up. Start Tomcat 5.0.19, enter http: // localhost: 8080 / helloApp /, ... actually displayed a page compilation error, very depressed. The following error message: org.apache.jasper.JasperException: Unable to compile class for JSPNo Java compiler was found to compile the generated source for the JSP.This can usually be solved by copying manually $ JAVA_HOME / lib / tools.jar from the JDKto The Common / Lib Directory of the Tomcat Server, FOLLOWED BY A Tomcat Restart.if Using An Alternate Java Compiler, Please Check ITS Installation And Access Path ... After setting the environment variable, restart Tomcat, result is wrong Still, painful ~ Google, really use, find a solution: 1. Make SURE The Following Environment Variables Are Set Correctly: >>> Java_Home Points To "C: /J2SDK1.4.2" (Correct Folder if Changed) >>> ClassPath Points TO% Java_Home% / Lib >>> Path Points TO% Java_Home% / BIN 2. Copy $ java_home / lib / Tools.jar to the common / lib Directory of the Tomcat Server 3. Update Your Registry To Reflect the New JVM Location: Key: HKEY_LOCAL_MACHINE / System / Controlset001 / Services / Apache Tomcat / Parameters / JVM Library Value: C: /J2SDK1.4.2/JRE/bin/server/jvm.dll