Like many of the other beginners here, I am learning this through the Head First book. I am using a macbook Pro running OSX 10.6.5
when I run
java -version I get 1.6.0_22 (from anywhere which makes me think it is in the path)
I write the basic code out in vi and then save it as a .java file (BeerSong.java for instance).
I can compile it with javac BeerSong.java which creates the class. But them I am not sure what to do. I get errors when I try and run %java BeerSong.java
The HF book shows that I should be typing %java but when I try the %java I get a message -bash: fg: %java: no such job.
Sorry for the basic question but I am pretty new to this, teaching myself through these books (started programming with HF Programming and getting into Python - thanks!)
Patrick