天天看点

Myeclipse导入不了自己建的包

今天遇到的问题,包明明存在却突然报找不到包的错误,重启eclipse无法解决,refresh也不行。最后是通过project-clean解决掉的。上面是一篇文章,列举了一系列的方法。

where classname was my imported class. i’m using the myeclipse workbench 5.5.1 on eclipse 3.2. here are a few tips on how you can fix this (some worked for me, some didn’t):

‘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)

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

hope at least one of those tips help!

转至: