I am new to java world . I am getting these errors, plz help me out I have java in JAVA_HOME:c:\Sun\AppServer\jdk; CLASSPATH:c:\Sun\AppServer\jdk\bin; Path: c:\Sun\AppServer\jdk\bin; C:\>javac HelloWorld.java error: cannot read: HelloWorld.java 1 error
First of all, did you create a file named HelloWorld.java? Second, what directory or folder is it saved in? I suspect that you need to use the cd command to change to this folder before using javac to compile it. HTH Layne
I saved the file as HelloWorld.java in folder: "c"; even I tried by saving the file in jdk's bin folder i.e c:\Sun\AppServer\jdk\bin\HelloWorld.java even then I am getting same error C:\Sun\AppServer\jdk>javac HelloWorld.java error: cannot read: HelloWorld.java 1 error