You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Victor Hugo Borja (JIRA)" <ji...@apache.org> on 2008/09/01 23:26:46 UTC
[jira] Commented: (BUILDR-98) java 6 doesn't work with jruby/buildr
[ https://issues.apache.org/jira/browse/BUILDR-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627540#action_12627540 ]
Victor Hugo Borja commented on BUILDR-98:
-----------------------------------------
Could not reproduce this with jruby 1.1.3 nor 1.1.4, Tim, is it possible for you to use these versions?
> java 6 doesn't work with jruby/buildr
> -------------------------------------
>
> Key: BUILDR-98
> URL: https://issues.apache.org/jira/browse/BUILDR-98
> Project: Buildr
> Issue Type: Bug
> Components: JRuby
> Affects Versions: 1.4, 1.3.1, 1.3.2, 1.3.3
> Environment: jruby 1.1.2 / java 6 / buildr 1.3.x
> Reporter: Tim Dysinger
> Priority: Blocker
>
> 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]
> ???
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.