Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problems running the app after plugin installation

 
Maharaj thak
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am working with Grails 1.3.7.Everytime I install a plugin(Searchable,jQuery) I get a long trace of exceptions which start like this


[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
[groovyc] General error during semantic analysis: unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings
[groovyc]
[groovyc] java.lang.ClassNotFoundException: unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings
[groovyc] at org.codehaus.groovy.tools.javac.JavacJavaCompiler.findJavac(JavacJavaCompiler.java:190)
[groovyc] at org.codehaus.groovy.tools.javac.JavacJavaCompiler.compile(JavacJavaCompiler.java:49)
[groovyc] at org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit.gotoPhase(JavaAwareCompilationUnit.java:94)


Can somebody please help me out?The app works fine if I uninstall all the plugins.

Regards
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you by any chance using OpenJDK or a JDK that isn't from Sun/Oracle?
 
Maharaj thak
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Greg
Thanks for the reply.For some reason changing JDK from 1.6 to 1.5 worked.

Regards
 
Maharaj thak
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
I have installed the latest version of activemq(5.5.0).It works fine with jdk 1.6 but not with jdk 1.5.My Grails(1.3.7) works with jdk1.5 but not with 1.6.Has anybody else faced any such problem?How did you solve it?

Regards
maharaj
 
Maharaj thak
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
Just did a grails compile from the command line with JAVA_HOME pointing to Java6 and its working now.

Regards
Maharaj
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic