Share

September 21, 2010

Grails: Team City Build Error

[16:54:24]: java.lang.ClassNotFoundException: sun.tools.native2ascii.Main
[16:54:24]: at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:156)
[16:54:24]: at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[16:54:24]: at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:128)
[16:54:24]: at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

If you see that make sure you have JAVA_HOME Set on the team city Agent...