Issue with opening Xmage on Mac OSX

While attempting to follow the instructions provided for using Xmage for Mac OSX, it was unable to find the file/directory when I was using the command prompt specified in the instructions in the terminal.
I'm running OS X version 10.9.4 and Java ver 8 update 20. Any advice would be appreciated.
Thanks.
I'm running OS X version 10.9.4 and Java ver 8 update 20. Any advice would be appreciated.
Thanks.