PDA

View Full Version : need helps to compile and run java


m.balakrishnan
December 31st, 2008, 06:41 AM
my file name sam.java

it shows follwing error, while compile this program

javac sam.java
javac: file not found: sam.java
Usage: javac <options> <source files>
use -help for a list of possible options


what will i do?

albandy
December 31st, 2008, 07:08 AM
do
cat sam.java
if you can see the file contents, the command you typed should work.