jQuery in Action, 2nd edition*
The moose likes Beginning Java and the fly likes class not found error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "class not found error" Watch "class not found error" New topic
Author

class not found error

kumar hght
Greenhorn

Joined: Feb 25, 2004
Posts: 3
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
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
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


Java API Documentation
The Java Tutorial
kumar hght
Greenhorn

Joined: Feb 25, 2004
Posts: 3
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
Max Habibi
town drunk
( and author)
Sheriff

Joined: Jun 27, 2002
Posts: 4118
try adding ;. to your paths, then reboot your machine.
M


Java Regular Expressions
kumar hght
Greenhorn

Joined: Feb 25, 2004
Posts: 3
sorry, I couldn't able to get the result
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: class not found error
 
Similar Threads
Re: J2EE setting
Error Messages...
Help needed ASAP : NoClassDefFoundError
couldn't able to solve the problem!!
Unable to run web application when moved from Tomcat to Jboss