Import external jar package 1. Right-click the project and choose build path-config build path2. in the upper-right column of the open window, select library. Click Add external jars3 and select Open jar, then click OK to save. The imported jar package can be viewed in referenced librarys. String cannot be resolved to a Type
Performance: all places where the return value of string or string type is displayed as a Red Cross
Cause: the JRE system library is not imported.
Solution:
1. Install JRE first. Click Add in window-pereference-Java-installed jres.
2. Select standard Vm and click Next.
3. Select the JRE home path. The path is the JDK root directory. Click Finish.
4. Select the newly added JRE and click OK.
5,Add a library.Right-click Project-build path-add libraryies
6. Select JRE system library and click Next.
7. Select workspace default JRE (the JRE installed in the JRE installation step) and click Finish.
Cocould not find the main class: org. Apache. Catalina. startup. Bootstrap
Performance: unable to run Tomcat server
Cause: the tomcat version is too high.
Solution:
1. window-preferences-servers-Tomcat6.x-Path
2. Select Add JAR/zip in path.Load the file under Tomcat 7 ...... /Bin/tomcat-juli.jar. Click "OK ".