Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Java compile problems

  1. May 15, 2008 #1
    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?
  2. jcsd
  3. May 18, 2008 #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
  4. May 19, 2008 #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.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook