Closed GoogleCodeExporter closed 8 years ago
A bit more information from me, one of the JRuby guys...
This definitely looks like some sort of mismatch between the new builds and
ant. Ant will try to determine the proper location of tools.jar based on
JAVA_HOME and other env stuff. This worked fine in previous builds that had a
pkg installer, but the new builds seem to be confusing ant into trying to stick
the weird JRE path on the end of the JDK path.
If our theory is right, this should break any ant build, not just JRuby. We
don't do anything special in our build script.
Original comment by head...@headius.com
on 22 Sep 2011 at 2:22
Sorry, I didn't figure this ticket before.
I tried also
{{{
ant
Unable to locate tools.jar. Expected to find it in
/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/1.7.0.jre/Contents/Hom
e/lib/tools.jar
}}}
Ant like Maven are puzzled by the the new 1.7.0.jre subdir added by Mike at the
same time we change our deployment procedure.
I'll try a fix on package side until macosx-port fix that.
Original comment by henri.gomez
on 30 Sep 2011 at 10:12
Issue 23 has been merged into this issue.
Original comment by henri.gomez
on 30 Sep 2011 at 10:27
[deleted comment]
On Apple 1.6.x JVM javac is found under JAVA_HOME/Contents/Classes/classes.jar
For OpenJDK it's now here JAVA_HOME/lib/tools.jar (both for OS/X and Linux)
As a tempory fix (while discussing with OpenJDK team), I'll add the following
in package process :
ln -s /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/lib/tools.jar
/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/1.7.0.jre/Contents/Hom
e/lib/tools.jar
May be a problem in Ant or JRE_HOME/JAVA_HOME.
Original comment by henri.gomez
on 30 Sep 2011 at 12:20
Added a symlink between lib/tools.jar and jre/lib/tools.jar in
OpenJDK-OSX-1.7-universal-b210-20110930.dmg to temporary fix this issue.
JIRA ticket to macosxport to be created
Original comment by henri.gomez
on 30 Sep 2011 at 1:50
http://java.net/jira/browse/MACOSX_PORT-483
Original comment by henri.gomez
on 30 Sep 2011 at 2:17
Fixed by dual bundle mode available since 20111004 release
Original comment by henri.gomez
on 4 Oct 2011 at 9:10
Original issue reported on code.google.com by
sam...@kadolph.com
on 22 Sep 2011 at 2:17