(b) modify the "Java Home" link underneath OS X using UNIX
commands. This is
one of the approaches that I would consider a hack because (unless
someone
from Apple wants to chime in and tell us differently) Apple recommends
against it. One reason is that they will release system updates
that change
it without you knowing it. For example, my "up-to-date" Leopard
install
currently points to 1.5, but I suspect an update in the future will
change
it to point to 1.6.
Ding, I think Pratik is from Apple.
I'm not sure what he suggested works though?
I made the change to my .bash_profile he suggested.
I added this to an ant build file.
So it doesn't change the javac that is used?
That would seem to make sense given this setup for javac
which javac
/usr/bin/javac
ls -l /usr/bin/javac
lrwxr-xr-x 1 root wheel 78 Nov 16 2007 /usr/bin/javac -> /System/
Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Commands/javac
which shows it completely dependent on what CurrentJDK links to, not
a java home setting.
Maybe I should of looked at what Giuliano recommended for XCode, this
might duplicate it.
But what appears to work for Terminal run Ant is...
<javac srcdir="${src.dir}"
destdir="${build.classes.dir}"
debug="on"
target="1.5"
source="1.5"
optimize="off"
fork="yes"
executable="/System/Library/Frameworks/JavaVM.framework/
Versions/1.6.0/Commands/javac"
includes="**">
<classpath refid="classpath"/>
</javac>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden