[
https://issues.apache.org/jira/browse/BUILDR-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932615#action_12932615
]
Ed Smiley commented on BUILDR-549:
----------------------------------
I was able to use the above information to get my installation working again.
Still needs a fix, as it is a support headache, but this information was very
helpful.
With the header files present in the right place and with Buildr 1.4.3
installed, and with all versions of RJB but 1.3.3 installed made the following
edits:
/Library/Ruby/Gems/1.8/specifications $ grep rjb buildr-1.4.3.gemspec | grep
1.2.5 # this gives all the places that originally had 1.2.5 and rjb
s.add_runtime_dependency(%q<rjb>, [">= 1.2.5"])
s.add_dependency(%q<rjb>, [">= 1.2.5"])
s.add_dependency(%q<rjb>, [">= 1.2.5"])
Verified that it now invokes the compiler and can instantiate Java classes.
Here's a quick tester file
===============
VERSION_NUMBER = "1.0.0"
# Group identifier for your projects
GROUP = "maketrace"
COPYRIGHT = ""
# Specify Maven 2.0 remote repositories here, like this:
repositories.remote << "http://www.ibiblio.org/maven2/"
desc "The Maketrace project"
# test VM
s =
Java.java.lang.Class.forName('java.lang.String').asSubclass(Java.java.lang.Class.forName('java.lang.Object'))
puts s.class
p s
# test compile
define "maketrace" do
project.version = VERSION_NUMBER
project.group = GROUP
manifest["Implementation-Vendor"] = COPYRIGHT
end
=============
and the output:
~/maketrace $ buildr
(in /Users/esmiley/maketrace, development)
Rjb::Java_lang_String
#<Rjb::Java_lang_String:0x10155cdf8>
Building maketrace
Completed in 0.005s
================
(this has emitted the string and also compiled the test Java class)
> 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.