This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes compile the source file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "compile the source file" Watch "compile the source file" New topic

compile the source file

Naim Driss

Joined: May 16, 2008
Posts: 2
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.

Larry Frissell
Ranch Hand

Joined: May 16, 2008
Posts: 82
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

Joined: May 26, 2003
Posts: 30586

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.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
GeeCON Prague 2014
subject: compile the source file