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" <[email protected]>
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 <[email protected]>
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" <[email protected]>
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
<[email protected]>
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
<[email protected]
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 <[email protected]
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 <[email protected]
>
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