aspose file tools*
The moose likes Groovy and the fly likes problems running the app after plugin installation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "problems running the app after plugin installation" Watch "problems running the app after plugin installation" New topic
Author

problems running the app after plugin installation

Maharaj thak
Greenhorn

Joined: Jul 29, 2010
Posts: 27
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

Joined: Jul 11, 2001
Posts: 15300
    
    6

Are you by any chance using OpenJDK or a JDK that isn't from Sun/Oracle?


GenRocket - Experts at Building Test Data
Maharaj thak
Greenhorn

Joined: Jul 29, 2010
Posts: 27

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

Regards
Maharaj thak
Greenhorn

Joined: Jul 29, 2010
Posts: 27
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

Joined: Jul 29, 2010
Posts: 27
Hi All
Just did a grails compile from the command line with JAVA_HOME pointing to Java6 and its working now.

Regards
Maharaj
 
 
subject: problems running the app after plugin installation