macbook:~ mmg$ java -version
java version "1.5.0_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)
I found another post in the cattle drive forum (2001/08/20) and it seems the person had a bad .zip file of the javaranch class. They re-downloaded and the problem was resolved. I have re-downloaded the jr.jar and no change.
Campbell Ritchie wrote:The path separator on a Mac is probably : like on Unix.
I ran a simple test just to show I am running the same versions and to show the classpath in use on my Mac:
As you can see from lines 2 & 4, I am using the same versions of OS/X and Java. Specifying the classpath when running the java command allowed me to include the jar file. Note the period (.) that is explicitly named in the classpath so that I can ensure that I have the current working directory included when running my program.