(上一篇的问题解决后又遇到的新问题)在eclipse中导入工程后运行任意文件出现"The selection is not within a valid module"
2008-09-18 11:50
1216 查看
一切的问题源于调试别人写好的的一个Demo。。。。
没想到只是想运行成功看看结果也不是那么简单啊~~
刚开始是已经导入的类不被识别的问题,(原因有待进一步研究)
接下来是个很让我崩溃的问题:连最基本String都被说成是“类型无法解析”
半天才找出来是由于原工程用的是tomcat6.0+jdk 1.6而我现在的环境是tomcat5.5+jdk1.5,看来是兼容性的问题,我只好又在电脑上装上这二位大仙才算OK了
现在是类倒是都识别了,可是就是任意文件都无法运行,一Run就他出提示:
"The selection is not within a valid module"
网上搜了一下,百度上只有一个待解决的同样问题,没有答复。
最后还是在Google大仙的帮助下,在英文站点:
http://dev.eclipse.org/newslists/news.eclipse.webtools/msg13972.html
找到了答案,这个是Eclipse的官方提供的报告软件Bug的站点
看来有位外国的哥们儿也遇到了这个问题,Eclipse方面给的答复是:
The current handling of project modules is such that the project name must match the deploy-name in the .settings/org.eclipse.wst.common.component for "everything" to work correctly.
我马上想起自己为了方便import以后改了工程的名字,改回去之后,
哈哈,这下才算是终于告一段落了
不过问题仍然存在,但都是代码方面的,配置的已经搞定了
没想到只是想运行成功看看结果也不是那么简单啊~~
刚开始是已经导入的类不被识别的问题,(原因有待进一步研究)
接下来是个很让我崩溃的问题:连最基本String都被说成是“类型无法解析”
半天才找出来是由于原工程用的是tomcat6.0+jdk 1.6而我现在的环境是tomcat5.5+jdk1.5,看来是兼容性的问题,我只好又在电脑上装上这二位大仙才算OK了
现在是类倒是都识别了,可是就是任意文件都无法运行,一Run就他出提示:
"The selection is not within a valid module"
网上搜了一下,百度上只有一个待解决的同样问题,没有答复。
最后还是在Google大仙的帮助下,在英文站点:
http://dev.eclipse.org/newslists/news.eclipse.webtools/msg13972.html
找到了答案,这个是Eclipse的官方提供的报告软件Bug的站点
看来有位外国的哥们儿也遇到了这个问题,Eclipse方面给的答复是:
The current handling of project modules is such that the project name must match the deploy-name in the .settings/org.eclipse.wst.common.component for "everything" to work correctly.
我马上想起自己为了方便import以后改了工程的名字,改回去之后,
哈哈,这下才算是终于告一段落了
不过问题仍然存在,但都是代码方面的,配置的已经搞定了
相关文章推荐
- Android开发中遇到的问题(五)——Eclipse导入Android项目出现"Invalid project description overlaps the location of another project"错误的解决办法
- 解决安装vmware-tools出现的“The path "" is not a valid path to the 3.2.0-4-amd64 kernel headers”问题
- 当eclipse导入工程时报"The builder launch configuration could not be found"错误时的解决方法
- 如何解决这类问题:The string "--" is not permitted within comments.
- IntelliJ IDEA导入JDK出现The selected directory is not a valid home for JDK问题的解决方法
- eclipse maven工程导入到MyEclipse出现"Versions of Spring facet could not be detected”的解决方法
- 安装完eclipse后问题The custom VM you have chosen is not a valid executable ->已解决
- Eclipse中“The selection is not within a valid module”异常处理
- 解决The selection is not within a valid module
- 解决The selection is not within a valid module
- 解决安装vmware-tools出现的“The path "" is not a valid path to the 3.2.0-4-amd64 kernel headers”问题
- Android开发中遇到的问题(五)——Eclipse导入Android项目出现"Invalid project description overlaps the location of another project"错误的解决办法
- eclipse运行android项目出现"The connection to adb is down, and a severe error has occured."的问题
- eclipse运行android项目出现"The connection to adb is down, and a severe error has occured."的问题
- 解决The selection is not within a valid module
- centos解决The path "" is not a valid path to the 3.2.0-4-amd64 kernel headers.问题
- 解决The selection is not within a valid module
- 关于Eclipse“The selection is not within a valid module”的异常
- vmware7安装vmwareTools出现Searching for a valid kernel header path... The path "" is not valid.
- 成功解决问题[Fatal Error] test.xml:1:7: The processing instruction target matching "[xX][mM][lL]" is not allowed.