buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Donald (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (BUILDR-98) java 6 doesn't work with jruby/buildr
Date Wed, 22 Jun 2011 10:11:15 GMT

     [ https://issues.apache.org/jira/browse/BUILDR-98?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Peter Donald closed BUILDR-98.
------------------------------


> 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.3.1, 1.3.2, 1.3.3, 1.4
>         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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message