class not found error
posted 21 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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
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
posted 21 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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
HTH
Layne
kumar hght
Greenhorn
Posts: 3
posted 21 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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
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
posted 21 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
try adding ;. to your paths, then reboot your machine.
M
M
kumar hght
Greenhorn
Posts: 3
posted 21 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
sorry, I couldn't able to get the result
| So I left, I came home, and I ate some pie. And then I read this tiny ad: The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |










