Myeclipse 常用设置及常见问题总结

Myeclipse 常用设置已常见问题总结

1 、有的时候,从svn上检出的项目上有莫名其妙的错误,我们又不容易找到在哪里,这是我们可以利用myeclipse中的一个工具, Windows-->show views-->problems
2、myeclipse 修改文件的打开方式
     window--->Preferences--->General---->Editor--->File Associations------>File Type里面点击add一种文件类型(比如 *.ini)--->Associated editors---> add (Properties file editor)--apply
3、myeclipse 修改properties显示中文显示
右击该properties文件--properties--Resource--Text file encoding,选中other,选择其它编码方式,如UTF-8或GBK
4、myeclipse 修改.properties文件的默认编码方式:
   window--->preferences----->General----->Context-types----->Text---->Java Properties File----->选中 file associations 中的*.properties ,然后选择 edit ,在default encoding中输入UTF-8,点击update,然后点击ok,下次创建.properties文件文件的默认编码就是utf-8格式的啦。
5、类继承错误解决方案 
1. The type javax.servlet.jsp.JspException cannot be resolved. It is indirectly referenced from required .class files
2. The hierarchy of the type HasAnyPermissionsTag is inconsistent
缺少 jsp-api.jar,右击项目名,buildpath,在tomcat的lib包下面找,导入之后build path即可
如果servlet异常需要加入servlet-api.jar tomcat也有的。
6、Myeclipse 内存溢出解决方法:
1) tomcat中设置Optional program arguments:
 -Xms1024M   -Xmx1024M -XX:MaxPermSize=400M
2) Jre中设置: windows-preferences-java-installed jres-双击 设置 default vm arguments
-XX:+CreateMinidumpOnCrash  -Xms512m -Xmx1024m -XX:PermSize=256M -XX:MaxPermSize=512M

7、myeclipse访问时不加项目名,点击项目名,右击-->properties-->输入web---Web Context-root 只留一个斜杠,然后重新发布项目,重新启动就好了。
8、项目名前面有红色叹号
可能得原因是jar删除了,没有删除buildpath之后的jar包,右键buildpath--libraries--选中该jar包,remove


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值