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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

helloworld error

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
dear all,
im starting my 1st program java,i saved it as "HelloWorldApp.java". but i cant compile it- the error statement is error: cannot read: HelloWorldApp.java (im using console window)
pls help..
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Throw in your program code...
 
Bartender
Posts: 1844
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
How did you create the file? Did you use a text editor, like Textpad or Notepad, or did you use an RTF editor like Wordpad or a Word Processlor like MS Word? The java compiler can only deal with plain text, so you should only use the first category to work on your Java files.

Of course, somethign more sisister may be going on, so please 1). Post your code and 2). Post the command that you are trying to use to compile it.
 
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
If you wrote it using Notepad, it probably append ".txt" to the filename (trying to be helpful). If that's not the case, make sure you saved it where you think you did.

If there's no package statement at the top, it should be in the same directory from which you're compiling. Type "dir" and verify that the file is there and spelled correctly, including case.
 
Creativity is allowing yourself to make mistakes; art is knowing which ones to keep. Keep this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
    Bookmark Topic Watch Topic
  • New Topic