Java compile problems

  • Java
  • Thread starter GiTS
  • Start date
  • #1
135
0

Main Question or Discussion Point

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
264
70
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
62
0
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.
 

Related Threads for: Java compile problems

  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
3
Views
4K
Replies
2
Views
1K
Replies
25
Views
2K
Replies
3
Views
593
Replies
9
Views
7K
  • Last Post
Replies
0
Views
3K
  • Last Post
Replies
6
Views
2K
Top