buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lacton <lac...@users.sourceforge.net>
Subject Re: Problem compiling with buildr
Date Sun, 12 Oct 2008 13:13:35 GMT
This is getting very puzzling.

So far, we've seen that

#1. JRuby can see tools.jar

File.exist?('c:/_programs/jdk1.6.0_04/lib/tools.jar') => true

#2. the 'java.home' property of JRuby points to the JRE

Java.java.lang.System.getProperty('java.home') => 'c:\_programs\jdk1.6.0_04\jre'

#3. the Java.tools_jar method reports it cannot find 'tools.jar'

Java.tools_jar => nil

How can #1-2 and #3 be true at the same time? Could there be a wrong
value in ENV['JAVA_HOME']?

What do you get when you run

jruby -e "load '/opt/jruby-1.1.4/lib/ruby/gems/1.8/gems/buildr-1.3.3-java/_buildr'
; puts ENV['JAVA_HOME']"

?

Lacton

On Sat, Oct 11, 2008 at 2:51 PM, chihiro <gavin.emploi@gmail.com> wrote:
>
> Lacton,
>
> Here's the output:-
>
> c:/_programs/jdk1.6.0_04/jre/lib/tools.jar false
> c:/_programs/jdk1.6.0_04/lib/tools.jar true
>
>
>
> lacton wrote:
>>
>> Sorry to ask you one more time, but will you try the following command
>> in your environment?
>>
>> jruby -e "['lib/tools.jar', '../lib/tools.jar'].map { |path|
>> File.expand_path(path, Java.java.lang.System.getProperty('java.home'))
>> }.each { |f| puts %{#{f} #{File.exist?(f)}} }"
>>
>

Mime
View raw message