[GRADLE-2103] When an appropriate java version is in the path groovyc should always find the java compiler Created: 15/Feb/12  Updated: 04/Jan/13  Resolved: 24/Apr/12

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-8
Fix Version/s: 1.0-rc-1

Type: Bug
Reporter: Stephane Gallès Assignee: Unassigned
Resolution: Fixed Votes: 0


 Description   

Compilation of a groovy plugin project when JAVA_HOME not defined :

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

With JAVA_HOME : success


Generated at Wed Jun 30 12:12:52 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.