Posted By: arton Tajima
Date: 2010-10-23 09:22
Summary: Rjb-1.3.0 was released
Project: Ruby Java Bridge

rjb-1.3.0 increase jar's handling. for example, you'd like to use foo.jar, bar.jar. you can code as:
Rjb::add_classpath(File.expand_path('foo.jar'))
Rjb::add_classpath(File.expand_path('bar.jar')) Rjb::load ...
instead of
Rjb::load("#{File.expand_path('foo.jar')}#{File::PATH_SEPARATOR}#{File.expand_path('bar.jar')}")

Later, you need add baz.jar then,
Rjb::add_jar(File.expand_path('baz.jar'))
Then Rjb create new ClassLoader for newly add jar (baz.jar).
----------
OS X 10.6 update 3 deprecated its JDK. So after update was applied, JVM name was changed. So I correctly set default JVM name. It was made Jeff's great helps.
But at the update was applied, some important JDK's header files may be deleted by the update. That's 1.6.0/Headers.
After that, building Gem may fail. You must restore 1.6.0/Headers directory if that happened.

Latest News
icalendar 1.4.0 Released
    Ryan Ahearn - 2013-05-21 23:17
BinData 1.5.0 - source moved to github
    Dion Mendel - 2013-05-21 11:10
v13.5.0 Released !!
    id 774 - 2013-05-18 12:28
Runt v0.9.0 Released
    Matthew Lipper - 2013-05-17 00:11
kramdown 1.0.2 released
    Thomas Leitner - 2013-05-09 06:58

 

Forums | Admin

Discussion Forums: rjb-1.3.0-was-released

Start New Thread Start New Thread
Message: 95114
BY: Vicente Quintans (vquintans)
DATE: 2010-10-25 14:56
SUBJECT: Mac OS X Java 6 Update 3

 

Repost here of my post in open-discussion (http://rubyforge.org/forum/forum.php?thread_id=48848&forum_id=8189)

After applying this update rjb refused to work. With a quick look to this page I saw that Arton had already set the new JVM name and had rjb working after the update.

I tried his precompiled gem but it didn't work. So I had to build my own binaries.

To compile the new version I downloaded the Java Headers in "Java for Mac OS X 10.6 Update 3 Developer Package" and added a symbolic link with:

cd /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers

I unset my previous JAVA_HOME environment variable and a quick "ruby setup.rb config; ruby setup.rb setup" built everything.

Finally with "rake -f rjb.rake" I got the gem ready to install in pkg/rjb-1.3.0.gem

I hope this helps to somebody.

Thanks to Arton Tajima for this great library!!!


Thread View

Thread Author Date
Mac OS X Java 6 Update 3Vicente Quintans2010-10-25 14:56

Post a followup to this message