Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

compile the source file

 
Naim Driss
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hallo everybody!


I typed by the shell the command: cd C:\java, it show this error:the system cannot find the specified commad. I also updated the PATHvariable.


Thanks
 
Larry Frissell
Ranch Hand
Posts: 82
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume that you are following the Java Tutorial here which says Enter cd C:\java

If so, it is possible you missed one of the previous steps which provided instructions to create the directory C:\java and save the hello program to that file.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34396
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Naim,
In addition to confirming that you installed Java to that directory, can you confirm that you are Windows. Most people use "shell" when talking about Linux or UNIX - which wouldn't have a c: drive in the first place.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic