Didn't work, but a little Googling turned up these:
http://forums.macosxhints.com/showthread.php?t=47531
Which led to this Bash script:
http://homepage.mac.com/shawnce/misc/java_functions_bashrc.txt
The only changes I made to the Bash script were to get rid of the prompt
setting stuff and to change "ls" to "/bin/ls" in the availableJVMs
function (since I have "ls" aliased). Works fine and I can build now
with Ant from the Terminal.
Maybe that'll help someone.
Thanks,
/dev/mrg
-----Original Message-----
From: Andrus Adamchik [mailto:andru..bjectstyle.org]
Sent: Thursday, December 01, 2005 10:46 AM
To: cayenne-deve..bjectstyle.org
Subject: Re: Eclipse Setup
On Dec 1, 2005, at 6:04 PM, Gentry, Michael ((Contractor)) wrote:
> My guess is it is using the 1.4 compiler instead of the 1.5 compiler?
> Any suggestions?
Yes, you are clearly running under JDK 1.4. If you have both JDK 1.4
and 1.5 on your machine like I do, just prepend "/System/Library/
Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin" to the shell
PATH. BTW, running "ant -v" will print out runtime JDK version. ...
Don't remember if you also need to export JAVA_HOME to the
environment. Hopefully not.
If you don't have 1.5 at all, you can still do "ant test-1_4" - there
is a special target for that:
http://objectstyle.org/confluence/display/CAY/Running+Unit+Tests
Andrus
This archive was generated by hypermail 2.0.0 : Thu Dec 01 2005 - 11:46:01 EST