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

Myeclipse导入不了自己建的包

时间:2014-05-12 14:33:14      阅读:471      评论:0      收藏:0      [点我收藏+]

标签:java   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)
  • ‘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!

转至:http://blog.sherifmansour.com/?p=207


Myeclipse导入不了自己建的包,布布扣,bubuko.com

Myeclipse导入不了自己建的包

标签:java   myeclipse   

原文地址:http://blog.csdn.net/gisredevelopment/article/details/25457157

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