Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Ruby/Java Bridge running on Windows

0 views
Skip to first unread message

Dema

unread,
Jun 18, 2005, 9:39:22 PM6/18/05
to
Hi folks,

I am trying really hard to get a Ruby/Java bridge compiled and running
on the Windows platform.

I've seen there are 3 Ruby/Java bridge projects: RJava (very obsolete),
RJB, RJNI (most up to date) available, but all of them come in source
code with native Ruby extensions that need to be compiled on the target
platform.

I've tried compiling all of them under Windows XP with Visual C++ with
no luck so far. They cannot find the Java library (java.dll) or the JNI
include file (jni.h), which are all available and with paths properly
configured.

So, if anyone has succeded in compiling any Java bridges on Windows (or
could guide me to do that), please contact me at
deme...@interface-ti.com.br

Thanks a lot,
Demetrius

Lyndon Samson

unread,
Jun 19, 2005, 6:08:09 AM6/19/05
to
Unfortunately Windows is a bit of a poor relation when it comes to
alot of ruby extensions. There was talk a little while back of an
'A-Team' to compile and package ruby libraries for windows but I don't
know how far they got.

IMHO, although there is alot of good work allready done, a lot more is
needed for ruby to really kick off, I guess DHH ( rails guy ) is happy
anyhow :-)


Kaspar Schiess

unread,
Jun 20, 2005, 3:22:27 AM6/20/05
to
Hi there,

> I've seen there are 3 Ruby/Java bridge projects: RJava (very obsolete),
> RJB, RJNI (most up to date) available, but all of them come in source
> code with native Ruby extensions that need to be compiled on the target
> platform.

I have successfully used RJB, although it still has some trouble using
methods with complicated signatures. I was thinking of fixing that at some
point, but didn't get very far.

> I've tried compiling all of them under Windows XP with Visual C++ with
> no luck so far. They cannot find the Java library (java.dll) or the JNI
> include file (jni.h), which are all available and with paths properly
> configured.

If all was well configured, it would just have worked, wouldn't it ? ;)
Have you also compiled Ruby with that same configuration ? I remember
tweaking some paths while compiling rjb, but having compiled your ruby
distro with the same compiler is the first precondition.

And there are certainly some people doing Ruby on windows, and there is
something like an A-Team, except we're hard to contact ;).

kaspar
--
code manufacture & ruby lab at http://www.tua.ch/ruby

0 new messages