You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Marc Lee (JIRA)" <ji...@apache.org> on 2008/10/16 01:48:44 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=12640016#action_12640016 ] 

Marc Lee commented on BUILDR-98:
--------------------------------

I am having this issue as well. I am using 1.1.3 and 1.1.4 but no joy. 

Compiling PlayupGameEngine into /Users/marc/Documents/workspace/playup/puge.git/target/classes
javac -classpath #{huge list of files}

cannot load Java class com.sun.tools.javac.Main
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/java/compilers.rb:68:in `method_missing'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/java/compilers.rb:68:in `compile'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/compile.rb:227:in `initialize'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:544:in `call'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:544:in `execute'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:388:in `invoke_with_call_chain'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:379:in `invoke_with_call_chain'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/compile.rb:384:in `invoke_prerequisites'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:385:in `invoke_with_call_chain'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:379:in `invoke_with_call_chain'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/test.rb:445:in `invoke_prerequisites'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:385:in `invoke_with_call_chain'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:379:in `invoke_with_call_chain'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:385:in `invoke_with_call_chain'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:379:in `invoke_with_call_chain'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:385:in `invoke_with_call_chain'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:379:in `invoke_with_call_chain'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:385:in `invoke_with_call_chain'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:379:in `invoke_with_call_chain'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:385:in `invoke_with_call_chain'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:379:in `invoke_with_call_chain'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:374:in `invoke'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:180:in `run'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:174:in `run'
/opt/jruby_1.1.3/lib/ruby/1.8/benchmark.rb:293:in `measure'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/lib/buildr/core/application.rb:173:in `run'
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/bin/buildr:21
/opt/jruby_1.1.3/lib/ruby/gems/1.8/gems/buildr-1.3.2-java/bin/buildr:19:in `load'
/opt/jruby/bin/buildr:19



> 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.