You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Daniel Spiewak <dj...@gmail.com> on 2009/01/08 18:41:04 UTC

::RJB.load on Apple's Java 6

I'm consistently getting the following error when my $JAVA_HOME points to
Apple's JDK version 1.6:

can't create Java VM
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in
`load'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in
`load'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/packaging.rb:578:in
`before_define'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
`call'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
`call_callbacks'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
`each'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
`call_callbacks'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in
`send'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in
`define'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `call'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `execute'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:624:in
`execute'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:146:in
`switch_to_namespace'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:623:in
`execute'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:637:in
`invoke_with_call_chain'
/opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:623:in
`invoke_with_call_chain'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:618:in
`invoke'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:400:in
`to_proc'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in
`each'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in
`projects'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:862:in
`projects'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:407:in
`raw_load_buildfile'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:218:in
`load_buildfile'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in
`standard_exception_handling'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:213:in
`load_buildfile'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:137:in
`run'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in
`standard_exception_handling'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:135:in
`run'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/bin/buildr:19
/opt/local/bin/buildr:19:in

Of moderate interest is the possibly-related fact that I get the same error
with SoyLatte.  Apple's JDK 1.5 works fine.

I've Googled until my fingers went numb to no avail.  Any idea what might be
going on here?

Daniel

Re: ::RJB.load on Apple's Java 6

Posted by Daniel Spiewak <dj...@gmail.com>.
Actually no, Apple's JDK 6.0 is 64bit only; they have not (and will not)
provide a 32bit version.  The only 32bit version of Java 6 on Mac is
SoyLatte, which is a port of OpenJDK for BSD.

Daniel

On Thu, Jan 8, 2009 at 12:13 PM, Antoine Toulme <an...@lunar-ocean.com>wrote:

> I confirm Java 6 on the Mac is 64 bits only. Sorry, don't know how to
> install for 64 bits, but I know it can be done.
>
> On Thu, Jan 8, 2009 at 7:06 PM, Daniel Spiewak <dj...@gmail.com>
> wrote:
>
> > Oy, I wonder if that's the problem.  Makes sense.  Checking the
> compilation
> > mode of the ruby executable gives me the following 32bit signature:
> >
> > $ file `which ruby`
> > /opt/local/bin/ruby: Mach-O executable i386
> >
> > Does anybody know how to make MacPorts compile Ruby 64bit instead of
> 32bit?
> >
> > Daniel
> >
> > On Thu, Jan 8, 2009 at 12:01 PM, Alex Boisvert <bo...@intalio.com>
> > wrote:
> >
> > > I don't know if it's going to be helpful but that's the same error I
> get
> > > when mixing 64-bit Ruby with 32-bit Java (or *vice versa*).
> > >
> > > alex
> > >
> > > On Thu, Jan 8, 2009 at 9:41 AM, Daniel Spiewak <dj...@gmail.com>
> > > wrote:
> > >
> > > > I'm consistently getting the following error when my $JAVA_HOME
> points
> > to
> > > > Apple's JDK version 1.6:
> > > >
> > > > can't create Java VM
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in
> > > > `load'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in
> > > > `load'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/packaging.rb:578:in
> > > > `before_define'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
> > > > `call'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
> > > > `call_callbacks'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
> > > > `each'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
> > > > `call_callbacks'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in
> > > > `send'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in
> > > > `define'
> > > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in
> `call'
> > > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in
> > `execute'
> > > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
> `each'
> > > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
> > `execute'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:624:in
> > > > `execute'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:146:in
> > > > `switch_to_namespace'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:623:in
> > > > `execute'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:637:in
> > > > `invoke_with_call_chain'
> > > > /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:623:in
> > > > `invoke_with_call_chain'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:618:in
> > > > `invoke'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:400:in
> > > > `to_proc'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in
> > > > `each'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in
> > > > `projects'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:862:in
> > > > `projects'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:407:in
> > > > `raw_load_buildfile'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:218:in
> > > > `load_buildfile'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in
> > > > `standard_exception_handling'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:213:in
> > > > `load_buildfile'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:137:in
> > > > `run'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in
> > > > `standard_exception_handling'
> > > >
> > > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:135:in
> > > > `run'
> > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/bin/buildr:19
> > > > /opt/local/bin/buildr:19:in
> > > >
> > > > Of moderate interest is the possibly-related fact that I get the same
> > > error
> > > > with SoyLatte.  Apple's JDK 1.5 works fine.
> > > >
> > > > I've Googled until my fingers went numb to no avail.  Any idea what
> > might
> > > > be
> > > > going on here?
> > > >
> > > > Daniel
> > > >
> > >
> >
>

Re: ::RJB.load on Apple's Java 6

Posted by Antoine Toulme <an...@lunar-ocean.com>.
I confirm Java 6 on the Mac is 64 bits only. Sorry, don't know how to
install for 64 bits, but I know it can be done.

On Thu, Jan 8, 2009 at 7:06 PM, Daniel Spiewak <dj...@gmail.com> wrote:

> Oy, I wonder if that's the problem.  Makes sense.  Checking the compilation
> mode of the ruby executable gives me the following 32bit signature:
>
> $ file `which ruby`
> /opt/local/bin/ruby: Mach-O executable i386
>
> Does anybody know how to make MacPorts compile Ruby 64bit instead of 32bit?
>
> Daniel
>
> On Thu, Jan 8, 2009 at 12:01 PM, Alex Boisvert <bo...@intalio.com>
> wrote:
>
> > I don't know if it's going to be helpful but that's the same error I get
> > when mixing 64-bit Ruby with 32-bit Java (or *vice versa*).
> >
> > alex
> >
> > On Thu, Jan 8, 2009 at 9:41 AM, Daniel Spiewak <dj...@gmail.com>
> > wrote:
> >
> > > I'm consistently getting the following error when my $JAVA_HOME points
> to
> > > Apple's JDK version 1.6:
> > >
> > > can't create Java VM
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in
> > > `load'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in
> > > `load'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/packaging.rb:578:in
> > > `before_define'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
> > > `call'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
> > > `call_callbacks'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
> > > `each'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
> > > `call_callbacks'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in
> > > `send'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in
> > > `define'
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `call'
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in
> `execute'
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
> `execute'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:624:in
> > > `execute'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:146:in
> > > `switch_to_namespace'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:623:in
> > > `execute'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:637:in
> > > `invoke_with_call_chain'
> > > /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:623:in
> > > `invoke_with_call_chain'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:618:in
> > > `invoke'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:400:in
> > > `to_proc'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in
> > > `each'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in
> > > `projects'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:862:in
> > > `projects'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:407:in
> > > `raw_load_buildfile'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:218:in
> > > `load_buildfile'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in
> > > `standard_exception_handling'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:213:in
> > > `load_buildfile'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:137:in
> > > `run'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in
> > > `standard_exception_handling'
> > >
> > >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:135:in
> > > `run'
> > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/bin/buildr:19
> > > /opt/local/bin/buildr:19:in
> > >
> > > Of moderate interest is the possibly-related fact that I get the same
> > error
> > > with SoyLatte.  Apple's JDK 1.5 works fine.
> > >
> > > I've Googled until my fingers went numb to no avail.  Any idea what
> might
> > > be
> > > going on here?
> > >
> > > Daniel
> > >
> >
>

Re: ::RJB.load on Apple's Java 6

Posted by Daniel Spiewak <dj...@gmail.com>.
True, but Buildr doesn't have *that* many gem dependencies with native
components (isn't RJB the only one).  There's plenty of very useful gems out
there which are more tightly coupled to the architecture (I'm pretty sure
parsetree is among them, though the fact that it's just using Ruby's
internal libs might save it).

Daniel

On Thu, Jan 8, 2009 at 12:44 PM, Alex Boisvert <bo...@intalio.com> wrote:

> On Thu, Jan 8, 2009 at 10:14 AM, Daniel Spiewak <dj...@gmail.com>
> wrote:
>
> > Thinking about it, building a 64bit Ruby is probably a bad idea.  Any
> > native
> > extensions for gems are bound to be 32bit only, which means I would break
> > most of my Ruby stuff if I tried it.  Drat.
>
>
> For what it's worth, we've been running 64-bit Ruby 1.8.7 and Buildr (incl.
> gem dependencies) for a few days now and everything seems to work as
> expected.  This is on 64-bit RedHat EL5.
>
> alex
>

Re: ::RJB.load on Apple's Java 6

Posted by Alex Boisvert <bo...@intalio.com>.
On Thu, Jan 8, 2009 at 10:14 AM, Daniel Spiewak <dj...@gmail.com> wrote:

> Thinking about it, building a 64bit Ruby is probably a bad idea.  Any
> native
> extensions for gems are bound to be 32bit only, which means I would break
> most of my Ruby stuff if I tried it.  Drat.


For what it's worth, we've been running 64-bit Ruby 1.8.7 and Buildr (incl.
gem dependencies) for a few days now and everything seems to work as
expected.  This is on 64-bit RedHat EL5.

alex

Re: ::RJB.load on Apple's Java 6

Posted by Assaf Arkin <ar...@intalio.com>.
Yup. My 1.5 is three different architectures, so Ruby must be picking  
32 bit.


On Jan 8, 2009, at 11:02 AM, "Daniel Spiewak" <dj...@gmail.com>  
wrote:

> The JNI spec didn't change *that* much between 1.5 and 1.6.  In  
> fact, off
> the top of my head I can't think of any changes.  Besides, if it's  
> something
> at the level of the Java spec, then shouldn't RJB fail to work on  
> *any* Java
> 6 installation, not just Mac?
>
> One thing I've noticed is that just setting the default JVM in Java
> Preferences.app doesn't change the default JDK.  This can be seen by  
> `echo
> $JAVA_HOME`.  It can be a bit annoying because when this happens,  
> `java
> -version` shows 1.6.0_07, while `$JAVA_HOME/bin/java -version` shows
> `1.5.0_...`.
>
> Daniel
>
> On Thu, Jan 8, 2009 at 12:55 PM, Assaf Arkin <ar...@intalio.com>  
> wrote:
>
>> My Mac has Java 1.5 in both 32 and 64 bit, the default being 64. I  
>> don't
>> think it's a bit issue, bit different JNI in 1.6.
>>
>>
>> On Jan 8, 2009, at 10:26 AM, "Daniel Spiewak" <dj...@gmail.com>  
>> wrote:
>>
>> Time to start wailing in the streets.  32bit SoyLatte doesn't help  
>> either.
>>> Same error.
>>>
>>> Daniel
>>>
>>> On Thu, Jan 8, 2009 at 12:14 PM, Daniel Spiewak  
>>> <dj...@gmail.com>
>>> wrote:
>>>
>>> Thinking about it, building a 64bit Ruby is probably a bad idea.   
>>> Any
>>>> native extensions for gems are bound to be 32bit only, which  
>>>> means I
>>>> would
>>>> break most of my Ruby stuff if I tried it.  Drat.
>>>>
>>>> I'll try SoyLatte i386.  If that doesn't work, I'll just start  
>>>> wailing in
>>>> the streets...
>>>>
>>>> Daniel
>>>>
>>>>
>>>> On Thu, Jan 8, 2009 at 12:06 PM, Daniel Spiewak  
>>>> <djspiewak@gmail.com
>>>>> wrote:
>>>>
>>>> Oy, I wonder if that's the problem.  Makes sense.  Checking the
>>>>> compilation mode of the ruby executable gives me the following  
>>>>> 32bit
>>>>> signature:
>>>>>
>>>>> $ file `which ruby`
>>>>> /opt/local/bin/ruby: Mach-O executable i386
>>>>>
>>>>> Does anybody know how to make MacPorts compile Ruby 64bit  
>>>>> instead of
>>>>> 32bit?
>>>>>
>>>>> Daniel
>>>>>
>>>>>
>>>>> On Thu, Jan 8, 2009 at 12:01 PM, Alex Boisvert <boisvert@intalio.com
>>>>>> wrote:
>>>>>
>>>>> I don't know if it's going to be helpful but that's the same  
>>>>> error I
>>>>>> get
>>>>>> when mixing 64-bit Ruby with 32-bit Java (or *vice versa*).
>>>>>>
>>>>>> alex
>>>>>>
>>>>>> On Thu, Jan 8, 2009 at 9:41 AM, Daniel Spiewak <djspiewak@gmail.com 
>>>>>> >
>>>>>> wrote:
>>>>>>
>>>>>> I'm consistently getting the following error when my $JAVA_HOME  
>>>>>> points
>>>>>>>
>>>>>> to
>>>>>>
>>>>>>> Apple's JDK version 1.6:
>>>>>>>
>>>>>>> can't create Java VM
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/ 
>>>>>>> rjb.rb:114:in
>>>>>>
>>>>>>> `load'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/ 
>>>>>>> rjb.rb:114:in
>>>>>>
>>>>>>> `load'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/ 
>>>>>>> packaging.rb:578:in
>>>>>>
>>>>>>> `before_define'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> project.rb:631:in
>>>>>>
>>>>>>> `call'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> project.rb:631:in
>>>>>>
>>>>>>> `call_callbacks'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> project.rb:631:in
>>>>>>
>>>>>>> `each'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> project.rb:631:in
>>>>>>
>>>>>>> `call_callbacks'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> project.rb:216:in
>>>>>>
>>>>>>> `send'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> project.rb:216:in
>>>>>>
>>>>>>> `define'
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb: 
>>>>>>> 615:in `call'
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in
>>>>>>>
>>>>>> `execute'
>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb: 
>>>>>>> 612:in `each'
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
>>>>>>>
>>>>>> `execute'
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> project.rb:624:in
>>>>>>
>>>>>>> `execute'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> application.rb:146:in
>>>>>>
>>>>>>> `switch_to_namespace'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> project.rb:623:in
>>>>>>
>>>>>>> `execute'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> application.rb:637:in
>>>>>>
>>>>>>> `invoke_with_call_chain'
>>>>>>> /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> application.rb:623:in
>>>>>>
>>>>>>> `invoke_with_call_chain'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> application.rb:618:in
>>>>>>
>>>>>>> `invoke'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> application.rb:400:in
>>>>>>
>>>>>>> `to_proc'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> project.rb:281:in
>>>>>>
>>>>>>> `each'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> project.rb:281:in
>>>>>>
>>>>>>> `projects'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> project.rb:862:in
>>>>>>
>>>>>>> `projects'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> application.rb:407:in
>>>>>>
>>>>>>> `raw_load_buildfile'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> application.rb:218:in
>>>>>>
>>>>>>> `load_buildfile'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> application.rb:503:in
>>>>>>
>>>>>>> `standard_exception_handling'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> application.rb:213:in
>>>>>>
>>>>>>> `load_buildfile'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> application.rb:137:in
>>>>>>
>>>>>>> `run'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> application.rb:503:in
>>>>>>
>>>>>>> `standard_exception_handling'
>>>>>>>
>>>>>>>
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>>>>> application.rb:135:in
>>>>>>
>>>>>>> `run'
>>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/bin/buildr:19
>>>>>>> /opt/local/bin/buildr:19:in
>>>>>>>
>>>>>>> Of moderate interest is the possibly-related fact that I get  
>>>>>>> the same
>>>>>>>
>>>>>> error
>>>>>>
>>>>>>> with SoyLatte.  Apple's JDK 1.5 works fine.
>>>>>>>
>>>>>>> I've Googled until my fingers went numb to no avail.  Any idea  
>>>>>>> what
>>>>>>>
>>>>>> might
>>>>>>
>>>>>>> be
>>>>>>> going on here?
>>>>>>>
>>>>>>> Daniel
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>

Re: ::RJB.load on Apple's Java 6

Posted by Daniel Spiewak <dj...@gmail.com>.
I've thought about nailgun.  How much memory overhead does that impose?  How
fast does the server start?

Daniel

On Thu, Jan 8, 2009 at 8:54 PM, n8han <na...@technically.us> wrote:

>
>
> Daniel Spiewak wrote:
> >
> > Yeah, I was thinking of doing that, I just don't like having to deal with
> > the extra startup time.
> >
>
> Well, I'm pretty sure I tried everything else. Eventually startup time
> started to seem a lot less important. ;) Also I think Assaf has written
> about ways to run it with or like nailgun, which I haven't pursued, but I
> think that would be your best bet.
>
> Nathan
> --
> View this message in context:
> http://www.nabble.com/%3A%3ARJB.load-on-Apple%27s-Java-6-tp21356785p21365365.html
> Sent from the Buildr - User mailing list archive at Nabble.com.
>
>

Re: ::RJB.load on Apple's Java 6

Posted by n8han <na...@technically.us>.

Daniel Spiewak wrote:
> 
> Yeah, I was thinking of doing that, I just don't like having to deal with
> the extra startup time.
> 

Well, I'm pretty sure I tried everything else. Eventually startup time
started to seem a lot less important. ;) Also I think Assaf has written
about ways to run it with or like nailgun, which I haven't pursued, but I
think that would be your best bet.

Nathan
-- 
View this message in context: http://www.nabble.com/%3A%3ARJB.load-on-Apple%27s-Java-6-tp21356785p21365365.html
Sent from the Buildr - User mailing list archive at Nabble.com.


Re: ::RJB.load on Apple's Java 6

Posted by Daniel Spiewak <dj...@gmail.com>.
Yeah, I was thinking of doing that, I just don't like having to deal with
the extra startup time.

Daniel

On Thu, Jan 8, 2009 at 8:46 PM, n8han <na...@technically.us> wrote:

>
> You can run Buildr on JRuby on the Apple Java 6 VM. I use it for a project
> that has 1.6 code.
>
> Nathan
> --
> View this message in context:
> http://www.nabble.com/%3A%3ARJB.load-on-Apple%27s-Java-6-tp21356785p21365307.html
> Sent from the Buildr - User mailing list archive at Nabble.com.
>
>

Re: ::RJB.load on Apple's Java 6

Posted by Daniel Spiewak <dj...@gmail.com>.
That's not a bad idea.  Bit of a shame though that it doesn't work  
running under JRuby.  I'll just add a simple java_platform? check to  
the invocations, adding the nojline option if necessary.

Daniel

On Jan 12, 2009, at 11:11 AM, n8han <na...@technically.us> wrote:

>
>
> Daniel Spiewak wrote:
>>
>> Could you check to see if my shell patch works under JRuby on your  
>> system?
>>
>
> It took me forever to discover I needed to change the ruby  
> invocation in
> _buildr to jruby to get it to install. But yes, I'm unable to type  
> anything
> into the shell once it comes up. Could try -Xnojline
>
> Nathan
> -- 
> View this message in context: http://www.nabble.com/%3A%3ARJB.load-on-Apple%27s-Java-6-tp21356785p21418867.html
> Sent from the Buildr - User mailing list archive at Nabble.com.
>

Re: ::RJB.load on Apple's Java 6

Posted by Assaf Arkin <ar...@intalio.com>.

On Jan 12, 2009, at 9:11 AM, n8han <na...@technically.us> wrote:

>
>
> Daniel Spiewak wrote:
>>
>> Could you check to see if my shell patch works under JRuby on your  
>> system?
>>
>
> It took me forever to discover I needed to change the ruby  
> invocation in
> _buildr to jruby to get it to install. But yes, I'm unable to type  
> anything
> into the shell once it comes up. Could try -Xnojl

I just added a _jbuildr.

Assaf


>
>
> Nathan
> -- 
> View this message in context: http://www.nabble.com/%3A%3ARJB.load-on-Apple%27s-Java-6-tp21356785p21418867.html
> Sent from the Buildr - User mailing list archive at Nabble.com.
>

Re: ::RJB.load on Apple's Java 6

Posted by n8han <na...@technically.us>.

Daniel Spiewak wrote:
> 
> Could you check to see if my shell patch works under JRuby on your system?
> 

It took me forever to discover I needed to change the ruby invocation in
_buildr to jruby to get it to install. But yes, I'm unable to type anything
into the shell once it comes up. Could try -Xnojline

Nathan
-- 
View this message in context: http://www.nabble.com/%3A%3ARJB.load-on-Apple%27s-Java-6-tp21356785p21418867.html
Sent from the Buildr - User mailing list archive at Nabble.com.


Re: ::RJB.load on Apple's Java 6

Posted by Daniel Spiewak <dj...@gmail.com>.
Could you check to see if my shell patch works under JRuby on your system?
It does some really weird stuff for me.  Specifically: no input is accepted
by the subprocess.  This happens with all of the shells, including groovysh
(which is launched using `system` rather than `Java::Commands`).  I'm
guessing it has something to do with jline, but I'm not sure what could
possibly be causing it.

Daniel

On Thu, Jan 8, 2009 at 8:46 PM, n8han <na...@technically.us> wrote:

>
> You can run Buildr on JRuby on the Apple Java 6 VM. I use it for a project
> that has 1.6 code.
>
> Nathan
> --
> View this message in context:
> http://www.nabble.com/%3A%3ARJB.load-on-Apple%27s-Java-6-tp21356785p21365307.html
> Sent from the Buildr - User mailing list archive at Nabble.com.
>
>

Re: ::RJB.load on Apple's Java 6

Posted by n8han <na...@technically.us>.
You can run Buildr on JRuby on the Apple Java 6 VM. I use it for a project
that has 1.6 code.

Nathan
-- 
View this message in context: http://www.nabble.com/%3A%3ARJB.load-on-Apple%27s-Java-6-tp21356785p21365307.html
Sent from the Buildr - User mailing list archive at Nabble.com.


Re: ::RJB.load on Apple's Java 6

Posted by Daniel Spiewak <dj...@gmail.com>.
The JNI spec didn't change *that* much between 1.5 and 1.6.  In fact, off
the top of my head I can't think of any changes.  Besides, if it's something
at the level of the Java spec, then shouldn't RJB fail to work on *any* Java
6 installation, not just Mac?

One thing I've noticed is that just setting the default JVM in Java
Preferences.app doesn't change the default JDK.  This can be seen by `echo
$JAVA_HOME`.  It can be a bit annoying because when this happens, `java
-version` shows 1.6.0_07, while `$JAVA_HOME/bin/java -version` shows
`1.5.0_...`.

Daniel

On Thu, Jan 8, 2009 at 12:55 PM, Assaf Arkin <ar...@intalio.com> wrote:

> My Mac has Java 1.5 in both 32 and 64 bit, the default being 64. I don't
> think it's a bit issue, bit different JNI in 1.6.
>
>
> On Jan 8, 2009, at 10:26 AM, "Daniel Spiewak" <dj...@gmail.com> wrote:
>
>  Time to start wailing in the streets.  32bit SoyLatte doesn't help either.
>> Same error.
>>
>> Daniel
>>
>> On Thu, Jan 8, 2009 at 12:14 PM, Daniel Spiewak <dj...@gmail.com>
>> wrote:
>>
>>  Thinking about it, building a 64bit Ruby is probably a bad idea.  Any
>>> native extensions for gems are bound to be 32bit only, which means I
>>> would
>>> break most of my Ruby stuff if I tried it.  Drat.
>>>
>>> I'll try SoyLatte i386.  If that doesn't work, I'll just start wailing in
>>> the streets...
>>>
>>> Daniel
>>>
>>>
>>> On Thu, Jan 8, 2009 at 12:06 PM, Daniel Spiewak <djspiewak@gmail.com
>>> >wrote:
>>>
>>>  Oy, I wonder if that's the problem.  Makes sense.  Checking the
>>>> compilation mode of the ruby executable gives me the following 32bit
>>>> signature:
>>>>
>>>> $ file `which ruby`
>>>> /opt/local/bin/ruby: Mach-O executable i386
>>>>
>>>> Does anybody know how to make MacPorts compile Ruby 64bit instead of
>>>> 32bit?
>>>>
>>>> Daniel
>>>>
>>>>
>>>> On Thu, Jan 8, 2009 at 12:01 PM, Alex Boisvert <boisvert@intalio.com
>>>> >wrote:
>>>>
>>>>  I don't know if it's going to be helpful but that's the same error I
>>>>> get
>>>>> when mixing 64-bit Ruby with 32-bit Java (or *vice versa*).
>>>>>
>>>>> alex
>>>>>
>>>>> On Thu, Jan 8, 2009 at 9:41 AM, Daniel Spiewak <dj...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>  I'm consistently getting the following error when my $JAVA_HOME points
>>>>>>
>>>>> to
>>>>>
>>>>>> Apple's JDK version 1.6:
>>>>>>
>>>>>> can't create Java VM
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in
>>>>>
>>>>>> `load'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in
>>>>>
>>>>>> `load'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/packaging.rb:578:in
>>>>>
>>>>>> `before_define'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
>>>>>
>>>>>> `call'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
>>>>>
>>>>>> `call_callbacks'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
>>>>>
>>>>>> `each'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
>>>>>
>>>>>> `call_callbacks'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in
>>>>>
>>>>>> `send'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in
>>>>>
>>>>>> `define'
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `call'
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in
>>>>>>
>>>>> `execute'
>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
>>>>>>
>>>>> `execute'
>>>>>
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:624:in
>>>>>
>>>>>> `execute'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:146:in
>>>>>
>>>>>> `switch_to_namespace'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:623:in
>>>>>
>>>>>> `execute'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:637:in
>>>>>
>>>>>> `invoke_with_call_chain'
>>>>>> /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:623:in
>>>>>
>>>>>> `invoke_with_call_chain'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:618:in
>>>>>
>>>>>> `invoke'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:400:in
>>>>>
>>>>>> `to_proc'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in
>>>>>
>>>>>> `each'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in
>>>>>
>>>>>> `projects'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:862:in
>>>>>
>>>>>> `projects'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:407:in
>>>>>
>>>>>> `raw_load_buildfile'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:218:in
>>>>>
>>>>>> `load_buildfile'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in
>>>>>
>>>>>> `standard_exception_handling'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:213:in
>>>>>
>>>>>> `load_buildfile'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:137:in
>>>>>
>>>>>> `run'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in
>>>>>
>>>>>> `standard_exception_handling'
>>>>>>
>>>>>>
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:135:in
>>>>>
>>>>>> `run'
>>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/bin/buildr:19
>>>>>> /opt/local/bin/buildr:19:in
>>>>>>
>>>>>> Of moderate interest is the possibly-related fact that I get the same
>>>>>>
>>>>> error
>>>>>
>>>>>> with SoyLatte.  Apple's JDK 1.5 works fine.
>>>>>>
>>>>>> I've Googled until my fingers went numb to no avail.  Any idea what
>>>>>>
>>>>> might
>>>>>
>>>>>> be
>>>>>> going on here?
>>>>>>
>>>>>> Daniel
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>

Re: ::RJB.load on Apple's Java 6

Posted by Assaf Arkin <ar...@intalio.com>.
My Mac has Java 1.5 in both 32 and 64 bit, the default being 64. I  
don't think it's a bit issue, bit different JNI in 1.6.

On Jan 8, 2009, at 10:26 AM, "Daniel Spiewak" <dj...@gmail.com>  
wrote:

> Time to start wailing in the streets.  32bit SoyLatte doesn't help  
> either.
> Same error.
>
> Daniel
>
> On Thu, Jan 8, 2009 at 12:14 PM, Daniel Spiewak  
> <dj...@gmail.com> wrote:
>
>> Thinking about it, building a 64bit Ruby is probably a bad idea.  Any
>> native extensions for gems are bound to be 32bit only, which means  
>> I would
>> break most of my Ruby stuff if I tried it.  Drat.
>>
>> I'll try SoyLatte i386.  If that doesn't work, I'll just start  
>> wailing in
>> the streets...
>>
>> Daniel
>>
>>
>> On Thu, Jan 8, 2009 at 12:06 PM, Daniel Spiewak  
>> <dj...@gmail.com>wrote:
>>
>>> Oy, I wonder if that's the problem.  Makes sense.  Checking the
>>> compilation mode of the ruby executable gives me the following 32bit
>>> signature:
>>>
>>> $ file `which ruby`
>>> /opt/local/bin/ruby: Mach-O executable i386
>>>
>>> Does anybody know how to make MacPorts compile Ruby 64bit instead of
>>> 32bit?
>>>
>>> Daniel
>>>
>>>
>>> On Thu, Jan 8, 2009 at 12:01 PM, Alex Boisvert  
>>> <bo...@intalio.com>wrote:
>>>
>>>> I don't know if it's going to be helpful but that's the same  
>>>> error I get
>>>> when mixing 64-bit Ruby with 32-bit Java (or *vice versa*).
>>>>
>>>> alex
>>>>
>>>> On Thu, Jan 8, 2009 at 9:41 AM, Daniel Spiewak  
>>>> <dj...@gmail.com>
>>>> wrote:
>>>>
>>>>> I'm consistently getting the following error when my $JAVA_HOME  
>>>>> points
>>>> to
>>>>> Apple's JDK version 1.6:
>>>>>
>>>>> can't create Java VM
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/ 
>>>> rjb.rb:114:in
>>>>> `load'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/ 
>>>> rjb.rb:114:in
>>>>> `load'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/ 
>>>> packaging.rb:578:in
>>>>> `before_define'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> project.rb:631:in
>>>>> `call'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> project.rb:631:in
>>>>> `call_callbacks'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> project.rb:631:in
>>>>> `each'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> project.rb:631:in
>>>>> `call_callbacks'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> project.rb:216:in
>>>>> `send'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> project.rb:216:in
>>>>> `define'
>>>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in  
>>>>> `call'
>>>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in
>>>> `execute'
>>>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in  
>>>>> `each'
>>>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
>>>> `execute'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> project.rb:624:in
>>>>> `execute'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> application.rb:146:in
>>>>> `switch_to_namespace'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> project.rb:623:in
>>>>> `execute'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> application.rb:637:in
>>>>> `invoke_with_call_chain'
>>>>> /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> application.rb:623:in
>>>>> `invoke_with_call_chain'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> application.rb:618:in
>>>>> `invoke'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> application.rb:400:in
>>>>> `to_proc'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> project.rb:281:in
>>>>> `each'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> project.rb:281:in
>>>>> `projects'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> project.rb:862:in
>>>>> `projects'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> application.rb:407:in
>>>>> `raw_load_buildfile'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> application.rb:218:in
>>>>> `load_buildfile'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> application.rb:503:in
>>>>> `standard_exception_handling'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> application.rb:213:in
>>>>> `load_buildfile'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> application.rb:137:in
>>>>> `run'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> application.rb:503:in
>>>>> `standard_exception_handling'
>>>>>
>>>>>
>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/ 
>>>> application.rb:135:in
>>>>> `run'
>>>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/bin/buildr:19
>>>>> /opt/local/bin/buildr:19:in
>>>>>
>>>>> Of moderate interest is the possibly-related fact that I get the  
>>>>> same
>>>> error
>>>>> with SoyLatte.  Apple's JDK 1.5 works fine.
>>>>>
>>>>> I've Googled until my fingers went numb to no avail.  Any idea  
>>>>> what
>>>> might
>>>>> be
>>>>> going on here?
>>>>>
>>>>> Daniel
>>>>>
>>>>
>>>
>>>
>>

Re: ::RJB.load on Apple's Java 6

Posted by Daniel Spiewak <dj...@gmail.com>.
Time to start wailing in the streets.  32bit SoyLatte doesn't help either.
Same error.

Daniel

On Thu, Jan 8, 2009 at 12:14 PM, Daniel Spiewak <dj...@gmail.com> wrote:

> Thinking about it, building a 64bit Ruby is probably a bad idea.  Any
> native extensions for gems are bound to be 32bit only, which means I would
> break most of my Ruby stuff if I tried it.  Drat.
>
> I'll try SoyLatte i386.  If that doesn't work, I'll just start wailing in
> the streets...
>
> Daniel
>
>
> On Thu, Jan 8, 2009 at 12:06 PM, Daniel Spiewak <dj...@gmail.com>wrote:
>
>> Oy, I wonder if that's the problem.  Makes sense.  Checking the
>> compilation mode of the ruby executable gives me the following 32bit
>> signature:
>>
>> $ file `which ruby`
>> /opt/local/bin/ruby: Mach-O executable i386
>>
>> Does anybody know how to make MacPorts compile Ruby 64bit instead of
>> 32bit?
>>
>> Daniel
>>
>>
>> On Thu, Jan 8, 2009 at 12:01 PM, Alex Boisvert <bo...@intalio.com>wrote:
>>
>>> I don't know if it's going to be helpful but that's the same error I get
>>> when mixing 64-bit Ruby with 32-bit Java (or *vice versa*).
>>>
>>> alex
>>>
>>> On Thu, Jan 8, 2009 at 9:41 AM, Daniel Spiewak <dj...@gmail.com>
>>> wrote:
>>>
>>> > I'm consistently getting the following error when my $JAVA_HOME points
>>> to
>>> > Apple's JDK version 1.6:
>>> >
>>> > can't create Java VM
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in
>>> > `load'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in
>>> > `load'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/packaging.rb:578:in
>>> > `before_define'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
>>> > `call'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
>>> > `call_callbacks'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
>>> > `each'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
>>> > `call_callbacks'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in
>>> > `send'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in
>>> > `define'
>>> > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `call'
>>> > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in
>>> `execute'
>>> > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
>>> > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
>>> `execute'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:624:in
>>> > `execute'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:146:in
>>> > `switch_to_namespace'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:623:in
>>> > `execute'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:637:in
>>> > `invoke_with_call_chain'
>>> > /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:623:in
>>> > `invoke_with_call_chain'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:618:in
>>> > `invoke'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:400:in
>>> > `to_proc'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in
>>> > `each'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in
>>> > `projects'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:862:in
>>> > `projects'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:407:in
>>> > `raw_load_buildfile'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:218:in
>>> > `load_buildfile'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in
>>> > `standard_exception_handling'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:213:in
>>> > `load_buildfile'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:137:in
>>> > `run'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in
>>> > `standard_exception_handling'
>>> >
>>> >
>>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:135:in
>>> > `run'
>>> > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/bin/buildr:19
>>> > /opt/local/bin/buildr:19:in
>>> >
>>> > Of moderate interest is the possibly-related fact that I get the same
>>> error
>>> > with SoyLatte.  Apple's JDK 1.5 works fine.
>>> >
>>> > I've Googled until my fingers went numb to no avail.  Any idea what
>>> might
>>> > be
>>> > going on here?
>>> >
>>> > Daniel
>>> >
>>>
>>
>>
>

Re: ::RJB.load on Apple's Java 6

Posted by Daniel Spiewak <dj...@gmail.com>.
Thinking about it, building a 64bit Ruby is probably a bad idea.  Any native
extensions for gems are bound to be 32bit only, which means I would break
most of my Ruby stuff if I tried it.  Drat.

I'll try SoyLatte i386.  If that doesn't work, I'll just start wailing in
the streets...

Daniel

On Thu, Jan 8, 2009 at 12:06 PM, Daniel Spiewak <dj...@gmail.com> wrote:

> Oy, I wonder if that's the problem.  Makes sense.  Checking the compilation
> mode of the ruby executable gives me the following 32bit signature:
>
> $ file `which ruby`
> /opt/local/bin/ruby: Mach-O executable i386
>
> Does anybody know how to make MacPorts compile Ruby 64bit instead of 32bit?
>
> Daniel
>
>
> On Thu, Jan 8, 2009 at 12:01 PM, Alex Boisvert <bo...@intalio.com>wrote:
>
>> I don't know if it's going to be helpful but that's the same error I get
>> when mixing 64-bit Ruby with 32-bit Java (or *vice versa*).
>>
>> alex
>>
>> On Thu, Jan 8, 2009 at 9:41 AM, Daniel Spiewak <dj...@gmail.com>
>> wrote:
>>
>> > I'm consistently getting the following error when my $JAVA_HOME points
>> to
>> > Apple's JDK version 1.6:
>> >
>> > can't create Java VM
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in
>> > `load'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in
>> > `load'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/packaging.rb:578:in
>> > `before_define'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
>> > `call'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
>> > `call_callbacks'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
>> > `each'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
>> > `call_callbacks'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in
>> > `send'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in
>> > `define'
>> > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `call'
>> > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in
>> `execute'
>> > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
>> > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
>> `execute'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:624:in
>> > `execute'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:146:in
>> > `switch_to_namespace'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:623:in
>> > `execute'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:637:in
>> > `invoke_with_call_chain'
>> > /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:623:in
>> > `invoke_with_call_chain'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:618:in
>> > `invoke'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:400:in
>> > `to_proc'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in
>> > `each'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in
>> > `projects'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:862:in
>> > `projects'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:407:in
>> > `raw_load_buildfile'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:218:in
>> > `load_buildfile'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in
>> > `standard_exception_handling'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:213:in
>> > `load_buildfile'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:137:in
>> > `run'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in
>> > `standard_exception_handling'
>> >
>> >
>> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:135:in
>> > `run'
>> > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/bin/buildr:19
>> > /opt/local/bin/buildr:19:in
>> >
>> > Of moderate interest is the possibly-related fact that I get the same
>> error
>> > with SoyLatte.  Apple's JDK 1.5 works fine.
>> >
>> > I've Googled until my fingers went numb to no avail.  Any idea what
>> might
>> > be
>> > going on here?
>> >
>> > Daniel
>> >
>>
>
>

Re: ::RJB.load on Apple's Java 6

Posted by Daniel Spiewak <dj...@gmail.com>.
Oy, I wonder if that's the problem.  Makes sense.  Checking the compilation
mode of the ruby executable gives me the following 32bit signature:

$ file `which ruby`
/opt/local/bin/ruby: Mach-O executable i386

Does anybody know how to make MacPorts compile Ruby 64bit instead of 32bit?

Daniel

On Thu, Jan 8, 2009 at 12:01 PM, Alex Boisvert <bo...@intalio.com> wrote:

> I don't know if it's going to be helpful but that's the same error I get
> when mixing 64-bit Ruby with 32-bit Java (or *vice versa*).
>
> alex
>
> On Thu, Jan 8, 2009 at 9:41 AM, Daniel Spiewak <dj...@gmail.com>
> wrote:
>
> > I'm consistently getting the following error when my $JAVA_HOME points to
> > Apple's JDK version 1.6:
> >
> > can't create Java VM
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in
> > `load'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in
> > `load'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/packaging.rb:578:in
> > `before_define'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
> > `call'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
> > `call_callbacks'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
> > `each'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
> > `call_callbacks'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in
> > `send'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in
> > `define'
> > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `call'
> > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `execute'
> > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
> > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:624:in
> > `execute'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:146:in
> > `switch_to_namespace'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:623:in
> > `execute'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:637:in
> > `invoke_with_call_chain'
> > /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:623:in
> > `invoke_with_call_chain'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:618:in
> > `invoke'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:400:in
> > `to_proc'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in
> > `each'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in
> > `projects'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:862:in
> > `projects'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:407:in
> > `raw_load_buildfile'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:218:in
> > `load_buildfile'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in
> > `standard_exception_handling'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:213:in
> > `load_buildfile'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:137:in
> > `run'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in
> > `standard_exception_handling'
> >
> >
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:135:in
> > `run'
> > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/bin/buildr:19
> > /opt/local/bin/buildr:19:in
> >
> > Of moderate interest is the possibly-related fact that I get the same
> error
> > with SoyLatte.  Apple's JDK 1.5 works fine.
> >
> > I've Googled until my fingers went numb to no avail.  Any idea what might
> > be
> > going on here?
> >
> > Daniel
> >
>

Re: ::RJB.load on Apple's Java 6

Posted by Alex Boisvert <bo...@intalio.com>.
I don't know if it's going to be helpful but that's the same error I get
when mixing 64-bit Ruby with 32-bit Java (or *vice versa*).

alex

On Thu, Jan 8, 2009 at 9:41 AM, Daniel Spiewak <dj...@gmail.com> wrote:

> I'm consistently getting the following error when my $JAVA_HOME points to
> Apple's JDK version 1.6:
>
> can't create Java VM
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in
> `load'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in
> `load'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/packaging.rb:578:in
> `before_define'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
> `call'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
> `call_callbacks'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
> `each'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in
> `call_callbacks'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in
> `send'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in
> `define'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:624:in
> `execute'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:146:in
> `switch_to_namespace'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:623:in
> `execute'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:637:in
> `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:623:in
> `invoke_with_call_chain'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:618:in
> `invoke'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:400:in
> `to_proc'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in
> `each'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in
> `projects'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:862:in
> `projects'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:407:in
> `raw_load_buildfile'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:218:in
> `load_buildfile'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in
> `standard_exception_handling'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:213:in
> `load_buildfile'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:137:in
> `run'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in
> `standard_exception_handling'
>
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:135:in
> `run'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/bin/buildr:19
> /opt/local/bin/buildr:19:in
>
> Of moderate interest is the possibly-related fact that I get the same error
> with SoyLatte.  Apple's JDK 1.5 works fine.
>
> I've Googled until my fingers went numb to no avail.  Any idea what might
> be
> going on here?
>
> Daniel
>