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!