[SOLVED] Mac Issues, doesn't recognise Java...

EDIT: Decided not to bump this thread since it's so old. I have since upgraded to Leopard and everything works fine.
I've subscribed to this post, so will read and reply quickly to help.
I'm trying to get Subsonic to work on Mac OS X 10.4.11
I've put it in /private/var/subsonic/standalone, as Mac has var inside the private folder. Changed permissions so Subsonic has read/write access.
Running the .sh script in Terminal gives me this:
/private/var/subsonic/standalone/subsonic.sh: line 16: /bin/java: No such file or directory
Any help here? I DO have Java, I know that for a fact. I don't think that $JAVA_HOME is defined properly in Mac.
Thanks in advance!
Will
I've subscribed to this post, so will read and reply quickly to help.

I'm trying to get Subsonic to work on Mac OS X 10.4.11
I've put it in /private/var/subsonic/standalone, as Mac has var inside the private folder. Changed permissions so Subsonic has read/write access.
Running the .sh script in Terminal gives me this:
/private/var/subsonic/standalone/subsonic.sh: line 16: /bin/java: No such file or directory
Any help here? I DO have Java, I know that for a fact. I don't think that $JAVA_HOME is defined properly in Mac.
Thanks in advance!
Will