javac command not compiling
I've just began to use java, and I'm pretty sure my code is correct, but when trying to compile i get this error:
javac hello.java
error: cannot read: hello.java
1 error
or
javac /home/Chad/java/hello.java
error: cannot read: /home/Chad/java/hello.java
1 error
I'm in the correct directory, i have read rights. I also tried it as super user. I'm using SuSE 10, I installed the SDK through YaST
my java -version is:
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
Do I need to set a path directory? Any help would be appreciated. thanks.
|