Friday, September 12, 2008

Error starting Sun's native2ascii: In Grails

If you run app in Grails and get this error message and app cannot run.This happened sometimes because you want to use i18n feature in your application.
Then try this method:
Copying %Java_Home%/lib/tools.jar to %Java_Home%/jre/lib/ext/tools.jar fixed this problem.
(a better approach is to set up JRE path to the directory JDK)

7 comments:

thanig said...

I had this problem inside of eclipse, but not external to grails in a shell. After adding tools.jar to the Bootstrap entries in the Pool Resources, and running setup inside eclipse that fixed the problem. (This was for a intranet application I was working on.)

Anonymous said...

Thanks thanig!

I've got the same problem in eclipse. After adding tools.jar all works fine!

Thanks a lot!
Maddin

Duc said...

Many thanks! It works with me too :)

Your sincerely!
Duc To

Ryan said...
This comment has been removed by the author.
Ryan said...

I would recommend adding a JDK. See this post for more details: http://ryanalberts.com/?p=208

Anonymous said...

Thanks so much, this was a huge help. Encountered this just running it in command prompt on a Windows 2008 machine.

Jairo Gatjens said...

thanks I am new in grails .. and this was very helpfull!