• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

class not found error

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
kumar hght
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
town drunk
( and author)
Posts: 4118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try adding ;. to your paths, then reboot your machine.
M
 
kumar hght
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic