views:

53

answers:

1

I have a code taht I am working on that was last worked on some time ago. It was an earlier version of grails (but I am not sure which) and I had to run the grails-upgrade command for it.

Now when I do grails run-app, i get the following: [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, General error during semantic analysis: unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings

What does this mean exactly, and how do I fix it? Is it actually a groovy problem? I googled the error message but didnt find much.

Thanks@

A: 

The problem was the Java version, and not groovy. The original code was written and compiled with 1.5. I switched the JDK from 1.6 to 1.5 and it worked.

Derek