[ 
https://issues.apache.org/jira/browse/BUILDR-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932551#action_12932551
 ] 

Rhett Sutphin commented on BUILDR-549:
--------------------------------------

Hi Dimitri -- I tried a similar thing. It turned out that RJB 1.3.2 would work 
without JAVA_HOME set (this was pointed out to me by RJB's author, Arton 
Tajima) or with JAVA_HOME set the way you have it. Setting it to other values 
would cause the "can't create Java VM" problem, while setting it to nothing 
would prevent buildr from running.

The symlink you describe in your last point was indeed already present on my 
system with the Java Developer package installed.

I think that setting JAVA_HOME to /System/Library/Frameworks/JavaVM.framework 
might cause problems later on (since it isn't actually a JAVA_HOME), but 
fortunately Anton has released RJB 1.3.3 which doesn't care about JAVA_HOME on 
OS X. The caveat with RJB 1.3.3 is that it includes a darwin-specific pre-built 
binary, but that binary will only work with the built-in ruby. If you are using 
a different one (e.g., from RVM, Macports, etc.) you should be able to install 
the platform-independent version like so:

$ gem install --platform ruby rjb -v 1.3.3

I've tried running buildr's specs with this version of RJB and they all pass, 
save a couple which I believe are currently expected to fail.

For the developers: can you update buildr's RJB dependency to 1.3.3? I would 
provide a patch, but it's just a two line change.

> Buildr cannot create a JVM using MRI on OS X 10.6 with Java Update 3 installed
> ------------------------------------------------------------------------------
>
>                 Key: BUILDR-549
>                 URL: https://issues.apache.org/jira/browse/BUILDR-549
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>    Affects Versions: 1.4.1, 1.4.2, 1.4.3
>         Environment: OS X 10.6.5 with Java Update 3 for OS X 10.6; tested 
> with 1.8.7-p174 and 1.8.7-p302, but probably any MRI will have this problem
>            Reporter: Rhett Sutphin
>         Attachments: buildfile, trace.txt
>
>
> Java Update 3 for OS X changed the way the JDK is installed on OS X and, in 
> the process, broke RJB.  With the current trunk, buildr's specs will not run. 
>  They give the error "RuntimeError : can't create Java VM".  Buildfiles which 
> invoke java have the same problem.
> Allegedly, upgrading to rjb 1.3.2 will fix this problem.  My initial efforts 
> in this direction have not been successful.  I'll investigate further and 
> update this ticket.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to