简单总结一下myeclipse首次使用的配置,eclipse类似。总结的不是很全面,如有新的看法,欢迎下方留言。
1、首先要激活,激活后查看 myeclipse-subscription information是否成功。myeclipse、eclipse程序及激活工具下载:点我
2、设置字符编码
window -> PReferences -> general -> Workspace -> Text file encoding选择Other,将新建工程属性编码改变为UTF-8。
window -> Preferences -> general -> Content Types选择Text树,点开,选择java Source File。在下面的Default encoding输入框中输入UTF-8,按下Update按钮,则设置Java文件编码为UTF-8。
3、字体大小 背景颜色设置
window -> Preferences -> general -> appearance -> colors and fonts -> basic 最后fonts一项,设置,字体大小为12
window -> Preferences -> general -> editors -> text Editors ->background colors 去掉对勾,设为护眼绿。修改 R: 204 G: 232 B: 207 或者 色调:85;饱和度:123;亮度:205即可
4、设置自动提示
Windows→Preferences→Java→Editor→Content Assist;修改Auto Activation triggers for java的值为:.abcdefghijklmnopqrstuvwxyz(,
5、设置java源码--也可以不设 用的时候添加
windows--preferences--Java--installed jres --选中jre6--点击右边的edit--选中jre6/lib/rt.jar
点击右边的 source attachment configuration -- external file selection --找到你的jdk下的src.zip文件,选择添加即可
6、添加jre、tomcat
在搜索框搜索installed JREs 、Tomcat。添加相关文件到myeclipse上。
7、设置创建jsp页面默认编码设为UTF-8:
Window -> Preferences -> MyEclipse -> Files and Editors -> JSP,将"Encoding"选为"ISO10646/Unicode(UTF-8)
8、关闭自动更新:
Eclipse:首先进入Windows –> Perferences–> Install/Update -> Automatic Updates,不要勾选"Automatically find new updates and notify me"。Myeclipse:Windows –> Perferences–> MyEclipse... -> Maven4MyEclipse,不要勾选"Download repository index updates on startup" 。
1、从外部导入工程到myeclipse8.5报错:Background Indexer Crash Recovery java.lang
Help > MyEclipse Configuration Center > Dashboard tab在Add-ons下取消勾选:"MyEclipse IE Javascript Debugger (Windows Only)"重启 在右下方的挂起面板(Pending Changes)选择:Apply 1 change 稍等···2、关于JPEGImageEncoder的问题
修改Windows-Preferences-Java-Compiler-Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过了,是eclipse的设置问题。
3、org.apache.jasper.JasperException: Unable to compile class for JSP
【Window】->【Preferences】->【Java】->【Compiler】->【JDK Compliance level】->1.4调高到1.6编译版本
将项目和tomcat下的web->web->web-info->lib中的jsp-api.jar和servlet-api.jar删除,重启服务器,重新运行
新闻热点
疑难解答