I have created a new workspace for the new JSP + Oracle project, but it shows that the string type cannot be parsed. After query, I found that JDK needs to be reconfigured to create a new workspace. The configuration process is as follows:
1. window --> preferences --> JAVA --> installed jres --> Add the jdk2.window you want to use --> preferences --> JAVA --> compiler, and select level as the corresponding version, 1.5 is selected for 5.0, and 1.6 is selected for 6.0. This error is because you have redone the system or other reasons, and your ide cannot find the previously set JDK, although you re-installed JDK, but the previous path is still in your ide, it can be run, but the error is displayed on the screen. I Don't Know What ide you are using, so I can't give you a specific modification method, but it is estimated that there are two methods, it's not JB, it's eclipse. You have to delete the old JDK reference of this project in IDE and rereference your new JDK address. It's okay with Tomcat.
Method 2
Right-click the project: properties -- Java build path-libraries
Find JRE system library and find JRE System Library [<? XML: namespace prefix = ST1 NS = "urn: Schemas-Microsoft-com: Office: smarttags"/> 1.6.0 _ 05] After unbond, click Edit, select the JDK installation path for alternate JRE. in this way, the problem is solved.
From: http://zhidao.baidu.com/question/195774786.html