eclipse 中导入源码出现 The declared package does not match the expected package的解决方法
来源:互联网 发布:网络推广软文怎么写 编辑:程序博客网 时间:2024/05/17 20:30
eclipse 导入项目,有时候会出现 java 文件图标由实心J变成空心J的问题,这个时候是不能编辑源文件的,至于解决办法就是右键该文件夹 – >BuildPath –> use as source folder
当以上问题解决后,如果你选择的文件路径不对,打开一个 java 文件就会出现首行的包命报错,The declared package does not match the expected package,这个主要是右键文件的时候,没有定位到正确的位置,这个问题的解决办法就是先从 source folder 移除掉你添加的文件,然后定位到你包名的上一级目录,如 java文件包名为 com.eaphy.platform.patch.slogon.action ,报错提示包名应该是 java.com.eaphy.platform.patch.slogon.action ,那么,右键的文件夹就应该在 java 这一级,然后 BuildPath –> use as source folder 这样就ok了
阅读全文
6 0
- eclipse 中导入源码出现 The declared package does not match the expected package的解决方法
- Eclipse: The declared package does not match the expected package
- 解决:The declared package..does not match the expected package..
- The declared package "" does not match the expected package
- The declared package does not match the expected package
- The declared package "" does not match the expected package "javaControlSql"
- The declared package does not match the expected package
- The declared package does not match the expected package
- The declared package does not match the expected package
- The declared package..does not match the expected package
- The declared package does not match the expected package
- 解决:The declared package..does not match the expected package..(转自百度空间)
- The declared package "com.XXX" does not match the expected package ""
- The declared package "com.dao" does not match the expected package "src.com.dao"
- The declared package "com.XXX" does not match the expected package ""
- JDBC产生The declared package does not match the expected package
- the declared package does not match 解决办法
- 从SVN上检出Maven项目报红叉错误,package错误 does not match the expected package "main.java.com.*
- tomcat 部署
- eclipse的常用快捷键
- Windows环境安装Pyside
- 项目笔记
- mysq 查询所有的国家按照洲来统计结果
- eclipse 中导入源码出现 The declared package does not match the expected package的解决方法
- Data Volume 之 bind mount
- WAV格式理解
- hadoop源码解析之hdfs写数据全流程分析---创建文件
- Go编程基础—反射(reflection)反射三定律
- cartoonShader学习
- KVM创建与克隆
- 了解ARP协议
- 如何快速掌握程序语言