问题描述
当我在运行时在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错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!