Making Grails on Fedora 14 works (native2ascii issue)

January 22, 2011

If you try to run a fresh Grails project on a F14 default install, with the default OpenJdk, as a result you’ll get this error


Error executing script RunApp: : Error starting Sun's native2ascii:
: Error starting Sun's native2ascii:

that’s because by default the JAVA_HOME environment variable points to the JRE path instead of the JDK.

To fix it you could just set the JAVA_HOME to the right path issuing a

export JAVA_HOME=/etc/alternatives/java_sdk

and putting in your /etc/profile.d scripts, or just fixing the java configuration file /etc/java/java.conf and uncommenting the following line:

JAVA_HOME=$JVM_ROOT/java

Happy Grails coding!

One Response to “Making Grails on Fedora 14 works (native2ascii issue)”

  1. Freaxmind Says:

    Thanks for your post. Will source it on my blog


Leave a comment