Fix Java Compile Error: "The system cannot find the path specified.

  • Context: Java 
  • Thread starter Thread starter GiTS
  • Start date Start date
  • Tags Tags
    Java
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
GiTS
Messages
132
Reaction score
0
My problem is the first one listed here http://java.sun.com/docs/books/tutorial/getStarted/problems/index.html

But when I type C:\jdk6\bin\javac HelloWorldApp.java I get the message "The system cannot find the path specified."
Both the compiler and HelloWorldApp.java file are in C:/ folder. I'm using the jdk-6u6-windows-i586-p-iftw compiler.

What am I doing wrong?
 
Physics news on Phys.org
If they are in the C:\ folder give the command
C:\javac HelloWorldApp.java
or add the search path of javac to your path
 
If you put "\" between directories, you get a compile error. Instead of this sign you should put "\\" or "/". This is something that I remember from my cs courses. You should tyr this, but it might not solve your problem.