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)

13 comments:

Anonymous 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

Unknown said...

Many thanks! It works with me too :)

Your sincerely!
Duc To

Unknown said...
This comment has been removed by the author.
Unknown 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!

Anonymous said...

Had to pull tools.jar from another directory, but it worked for me as well. =)

Unknown said...

Thanks a lot,,,Dude
NOw its working 5n

Yugandhar said...

Thanks Dude
Now its working 5n

Unknown said...

thanks it works...

scheffchoch said...

Thanks!

Anonymous said...

obrigada, ajudou muito!