Help... Java on Mac OSX

I'm trying to learn Java2 on my mac and I've run into a problem. I'm trying to use the terminal command line to compile and run applications w/ the jdk. i copied the source code for the generic "HelloWorld" app but when I try to compile it

javac HelloWorld.java

it says it gives me an error that it can't read HelloWorld.java

also, i tried to run HelloWorld.class which i compiled on my pc and i get the same error.

Can anyone help me or refer me to a place that can? I feel like I've tryed everything and I'm very frustrated now.

Thanks.

[597 byte] By [andie6] at [2007-9-26 1:14:31]
# 1
Hi,1) Make sure you are in the right directory.2) Try adding a dot (.) to your CLASSPATH environment variableHope this helps,Kurt.
leukbr at 2007-6-29 0:31:52 > top of Java-index,Archived Forums,New To Java Technology Archive...