码迷,mamicode.com
首页 > 系统相关 > 详细

eclipse中自建实体类存在但是导入的包报错cannot be resolved

时间:2018-10-04 14:08:19      阅读:380      评论:0      收藏:0      [点我收藏+]

标签:The   bsp   存在   https   class   eclipse   eclips   ref   文件删除   

摘自:https://blog.csdn.net/lazy_p/article/details/7452846 ‘Clean’ Your Eclipse Project: Go to Project > Clean in Eclipse [This seems to work for me] Refresh your project folder (right click on your project > refresh) Re-build your project Clean your builds (If using Ant or Maven – clean your builds) Recreate your project in Eclipse ‘Switch’ Workspace – then Switch back (Eg Change to Debug, then switch back to Java) ‘Switch’ Workspace – then Switch back (Eg Change to Debug, then switch back to Java) Remove and re-add your JRE: 1. Right Click on your project > properties 2. Click on the Libraries tab 3. Click on the JRE 4. Click remove, then OK 5. Repeat 1-3 again, but add the JRE again --------------------- 其中 project 中 clean功能解释如下: 由于eclipse的编译是基于时间戳的判断机制的。因此当你按build   all的时候有些eclipse认为时间戳没有改变的类不会被编译。因此你可以先clean一下再编译。这个时候eclipse会将所有的以前编译信息清除然后编译。   eclipse  --->project  ----->clean... 选项将工程中的.class文件删除,同时重新编译工程,类似于jbuild中的rebuild  --------------------- 本文来自 映月文章 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/u010715393/article/details/42125505?utm_source=copy

eclipse中自建实体类存在但是导入的包报错cannot be resolved

标签:The   bsp   存在   https   class   eclipse   eclips   ref   文件删除   

原文地址:https://www.cnblogs.com/a6948076/p/9742089.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!