解决MyEclipse7.0 中文版Unmatched braces in the pattern

今天在MyEclipse 7.0-M2下查看class文件的时候提示“Unmatched braces in the pattern”,通过Google发现出现此问题的大部分是Eclipse3.1.x的中文版,网上给出的解决方法是:
[quote]由错误报告出现问题的org.eclipse.jdt.internal.core.util.Messages 类, disassembler_opentypedeclaration 字段,对应于语言包插件 plugins 目录下的 org.eclipse.jdt.core.nl1_3.1.1.jar 包,该包 org\eclipse\jdt\internal\core\util 目录下的 messages_zh.properties 文件,有段代码为 disassembler_opentypedeclaration=\ \u201C{\u201D,有的可能为
disassembler_opentypedeclaration=\ “{”,
同目录下的其它语言文件这段代码为 disassembler_opentypedeclaration=\ ‘{’,
这可能是 Eclipse 在语言转换时产生的错误. 修改代码 \u201C{\u201D (或“{”) 为 ‘{’.
解压 org.eclipse.jdt.core.nl1_3.1.1.jar, 修改 messages_zh.properties 文件,
再压缩成 .zip 文件, 改扩展名为 .jar (或 jar 命令打包), 在Eclipse 关闭时替换原来的 jar 包 即可.
[/quote]
如果你用的是MyEclipse 7.0-M2,需要找到“C:\Program Files\MyEclipse 7.0 M2\eclipse\plugins\org.eclipse.jdt.core.nl-zh_3.4.0.v20081109043401.jar”文件,解压后找到“\org\eclipse\jdt\internal\core\util\messages_zh.properties”这个文件,用记事本搜索“disassembler_opentypedeclaration”,将“disassembler_opentypedeclaration=[b][color=red]\ \u2018{\u2019[/color][/b]
disassembler_closetypedeclaration=}
”替换为“disassembler_opentypedeclaration=[b][color=red]{[/color][/b]
disassembler_closetypedeclaration=}
”,红色字体为修改内容,修改完毕后,重新打包替换“org.eclipse.jdt.core.nl-zh_3.4.0.v20081109043401.jar”即可
你也可以下载附件里的“[url=http://atao.iteye.com/topics/download/3015780e-660a-395b-8fce-fb42b37011cb]org.eclipse.jdt.core.nl-zh_3.4.0.v20081109043401.jar[/url]”进行替换,替换的时候需要关闭MyEclipse
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值