Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Cannot Reproduce
-
1.3.1, 1.3.2, 1.3.3, 1.4
-
None
-
None
-
jruby 1.1.2 / java 6 / buildr 1.3.x
Description
You cannot select java 1.6 for :target buildr will bomb even though the compilation command is fine. See below:
Duece:components tim$ echo $JAVA_HOME
/usr/local/java
Duece:components tim$ buildr
Compiling sonian:prototype into /Users/tim/Projects/sonian/components/prototype/target/classes
javac -classpath /Users/tim/.m2/repository/org/jruby/jruby-complete/1.1.2/jruby-complete-1.1.2.jar:/usr/local/java/lib/tools.jar -sourcepath /Users/tim/Projects/sonian/components/prototype/src/main/java -d /Users/tim/Projects/sonian/components/prototype/target/classes -verbose -g -source 1.6 -target 1.6 -Xlint:all /Users/tim/Projects/sonian/components/prototype/src/main/java/sonian/Example.java
rake aborted!
cannot load Java class com.sun.tools.javac.Main
???
Duece:components tim$ javap -classpath /usr/local/java/lib/tools.jar com.sun.tools.javac.Main
Compiled from "Main.java"
public class com.sun.tools.javac.Main extends java.lang.Object{
public com.sun.tools.javac.Main();
public static void main(java.lang.String[]) throws java.lang.Exception;
public static int compile(java.lang.String[]);
public static int compile(java.lang.String[], java.io.PrintWriter);
static {};
}
Duece:components tim$ which javac
/usr/local/java/bin/javac
Duece:components tim$ javac -classpath /Users/tim/.m2/repository/org/jruby/jruby-complete/1.1.2/jruby-complete-1.1.2.jar:/usr/local/java/lib/tools.jar -sourcepath /Users/tim/Projects/sonian/components/prototype/src/main/java -d /Users/tim/Projects/sonian/components/prototype/target/classes -verbose -g -source 1.6 -target 1.6 -Xlint:all /Users/tim/Projects/sonian/components/prototype/src/main/java/sonian/Example.java
[parsing started /Users/tim/Projects/sonian/components/prototype/src/main/java/sonian/Example.java]
[parsing completed 87ms]
[search path for source files: /Users/tim/Projects/sonian/components/prototype/src/main/java]
[search path for class files: /usr/local/soylatte16-i386-1.0.2/jre/lib/resources.jar,/usr/local/soylatte16-i386-1.0.2/jre/lib/rt.jar,/usr/local/soylatte16-i386-1.0.2/jre/lib/sunrsasign.jar,/usr/local/soylatte16-i386-1.0.2/jre/lib/jsse.jar,/usr/local/soylatte16-i386-1.0.2/jre/lib/jce.jar,/usr/local/soylatte16-i386-1.0.2/jre/lib/charsets.jar,/usr/local/soylatte16-i386-1.0.2/jre/classes,/usr/local/soylatte16-i386-1.0.2/jre/lib/ext/dnsns.jar,/usr/local/soylatte16-i386-1.0.2/jre/lib/ext/localedata.jar,/usr/local/soylatte16-i386-1.0.2/jre/lib/ext/sunjce_provider.jar,/usr/local/soylatte16-i386-1.0.2/jre/lib/ext/sunpkcs11.jar,/Users/tim/.m2/repository/org/jruby/jruby-complete/1.1.2/jruby-complete-1.1.2.jar,/usr/local/java/lib/tools.jar]
[loading /usr/local/soylatte16-i386-1.0.2/lib/ct.sym(META-INF/sym/rt.jar/java/lang/Object.class)]
[checking sonian.Example]
[loading /usr/local/soylatte16-i386-1.0.2/lib/ct.sym(META-INF/sym/rt.jar/java/io/Serializable.class)]
[wrote /Users/tim/Projects/sonian/components/prototype/target/classes/sonian/Example.class]
[total 1142ms]
???