Java compile problems

  • Java
  • Thread starter GiTS
  • Start date
  • Tags
    Java
  • #1
135
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?
 

Answers and Replies

  • #2
If they are in the C:\ folder give the command
C:\javac HelloWorldApp.java
or add the search path of javac to your path
 
  • #3
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.
 

Suggested for: Java compile problems

Replies
8
Views
590
Replies
1
Views
296
Replies
5
Views
901
Replies
2
Views
746
Replies
1
Views
1K
Replies
2
Views
946
Back
Top