It's not a secret anymore!
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
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: 32844

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: compile the source file
It's not a secret anymore!