当我向message.properties添加新属性时,Grails:Native2ascii错误 [英] Grails: Native2ascii error when I add a new property to message.properties

查看:155
本文介绍了当我向message.properties添加新属性时,Grails:Native2ascii错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在运行时在grails应用程序中向message.properties文件添加新属性时,出现奇怪的错误。当我通过命令行重新启动应用程序或重新启动STS时,此错误消失。我在版本2.0.1上,直到一个星期前,我能够在运行时向message.properties文件添加新属性。这是错误的堆栈跟踪

I get a strange error when I add a new property to message.properties file in my grails application during runtime. When I restart the application via the command line, or restart STS, this error disappears. I am on version 2.0.1 and until a week ago, I was able to add new properties to message.properties file during runtime. Here is the stacktrace of the error

| Error 2012-06-18 16:54:58,702 [Thread-38] ERROR plugins.AbstractGrailsPluginManager  - Plugin [i18n:2.0.1] could not reload changes to file [/home/project/grails-app/i18n/messages.properties]: Error starting Sun's native2ascii: 
Message: Error starting Sun's native2ascii: 

任何想法?

推荐答案

cd到jdk路径



cp lib / tools.jar jre / lib / ext / tools.jar



它解决了这个问题。

cd to jdk path

cp lib/tools.jar jre/lib/ext/tools.jar

It solves the issue.

注意:要得到正确的jdk
检查GGTS - > Windows - >首选项 - > Java - >已安装的JRE - > JREs主目录

Note: to get correct jdk path, check GGTS --> Windows --> Preferences --> Java --> Installed JREs --> JREs Home Path

这篇关于当我向message.properties添加新属性时,Grails:Native2ascii错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆