I'm not into Mac, but I'm not sure you need that "%". Try again without it and correct it to "java BeerSong", not "java BeerSong.java". You may have to make your class in the classpath. An easy way to do it is to go to the top package where your class is, and type "java -cp . BeerSong".
I'm not sure because I don7t have the book, but I guess that the "%" is just a symbol shown at the command prompt of the Unix terminal.
Patrick Burdine wrote:
The % thing I a bit odd, I kind of thought that too, but even in the plain text they show it. Ah well. Thanks again!
Of course, my fellow old-timers know that, on early versions of unix, using the original version of the bourne shell, and not setting a command prompt, and the user is not the super user, then the default prompt is "%".