myeclipse操作技巧

一、myeclipse6.5安装反编译插件

1、准备:jad.exe和net.sf.jadclipse_3.3.0.jar

2、将jad.exe拷贝到jdk1.7\bin目录下

3、将net.sf.jadclipse_3.3.0.jar拷贝到myeclipse6.5\myeclipse\eclipse\plugins目录下

4、重新启动myeclipse6.5看看Window->Preferences>java是不是在界面上多了个jadeclipse。

5、打开:Window->Preferences->Java->JadClipse. 
1)Path to decompiler,这里设置反编译工具jad的全路径名,我的是E:\jdk1.7\bin\jad.exe
2)Directory for temporary files,这里设置临时文件路径。 
至于Window->Preferences->Java->JadClipse目录下的Debug,Directives,Formatting,Misc目录中的参数设置,有兴趣的可以研究下。 
6、注意:安装完成后,myeclipse会自动将JadClipse Class File Viewer设置成class文件的缺省打开方式,如果没有,设置方法如下:
在Eclipse的Windows—> Perference—>General->Editors->File Associations中修改“*.class”默认关联的编辑器为“JadClipse Class File Viewer”。
7、设置完成,找一个jar包中的*.class文件,myeclipse将自动反编译


二、修改myeclipse的编码

在菜单栏的
Window->Preferences->General->Workspace->Text file encoding
将其改为UFT-8即可。


三、解决myeclipse自动补全时,出现This compilation unit is not on the build path of a Java project.错误

Add the below lines in the .project file of your workspace and refresh.
<natures>
      <nature>org.eclipse.jdt.core.javanature</nature>
</natures>

注意:.project文件在myeclipse中看不到,需要去磁盘上当前工程目录下找!


四、修改工程的JRE system library

1.选择工程->Properties->Java Build Path->Libraries,删掉原来的JRE system library 。 
2.点击"Add Library"->"JRE system library "->next->选择“alternate JRE:”->"installed JREs"->Add,然后就选择要使用的JRE,就完成了修改。


五、maven功臣在执行clean install命令时报错:[ERROR] Unable to locate the Javac Compiler in

Unable to locate the Javac Compiler in:
C:\Program Files\Java\jre1.6.0_07\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.

产生问题的原因:

The reason is that m2eclipse plugin want to find the tools.jar in JDK_HOME/lib folder. That means you must install JDK to execute maven in Eclipse.

解决办法:

In Eclipse, you can configure the JRE included in JDK directory.


Then, configure JRE of maven Run Configuration as workspace default JRE


ok,问题解决!


六、Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) on project smrr: There are test failures

Maven will try to install this plugin along with dependencies first time in .m2/repository folder, due proxy issues dependencies failing to download. so, Update the Maven project:
Steps:
Right-click on "project" Go to "Maven" >> "Update" Wait for all the changes to be applied Commit the changes (if code is on repo) Run
Also check the artifactid, groupid, version of plugins along with dependencies.


六、解决编辑jsp页面遇到的光标乱跳问题

在MyEclipse中写Jsp时,老是会有这种情况,正写着代码,突然光标跳到别的地方了,经常导致输入错误,直接导致程序错误 解决方法:
用eclipse或myEclipse开发工具时,相信有很多人都碰到过这样的问题,着实让人很烦,光标总是跳来跳去,终于解决了,有碰到这种情况的可以试试,打开window--Preferences--MyEclipse--Files and Editors--Jsp(HTML)--Visual Designer ,把 Manually refresh design view when not synchronized 选项勾上。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值