headius often kindly tries to get me to actually overcome my lingering Java allergies to try to run JRuby and now my excuse of FreeBSD amd64 not being Java-friendly has been stripped away.
In reality JRuby of course is a great project running a pretty impressive platform, the JVM, so this should be an interesting experiment. headius suggested using the SoyLatte version of JDK/JRE and looks like not without cause. It is an implementation of Java 6 based off the BSD port. So, steps taken:
- Java
- Downloaded the amd64 binary from the Soylatte site (Intel Core 2 Duo is, oddly enough, kind_of? amd64—EM64T to be precise)
- The directory needs to be extracted somewhere, I chose
/opt/local- `
cd /opt/local` - `
sudo tar xjvpf /path/to/tar.bz2` - `
sudo mv long_name soylatte16`
- `
- Set the Java environment variables (these go in my
~/.bashrc)export JAVA_HOME=/opt/local/soylatte16export PATH=/opt/local/soylatte16/bin:$PATH(front to make sure it overrides system JREs)- I wanted to try NetBeans which expects certain paths: `
ln -s /opt/local/soylatte16 /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home`
- JRuby
- Downloaded the 1.1b binary package
- Extracted in
/opt/localagain- `
cd /opt/local` - `
sudo tar xzvpf /path/to/tar.gz` - `
sudo mv long_name jruby`
- `
- `
export PATH=$PATH:/opt/local/jruby/bin` to make it visible,~/.bashrcagain
- Pick up the new envs: `
source ~/.bashrc` - Test: `
jruby -v` - Hooray!
Now to see if I can come up with something sensible to use this for.