Question:

Java question concerning compiling using the run cmd ?

by  |  earlier

0 LIKES UnLike

i am trying to learn java .. i created a file called HelloWorldApp.java in c:\java .. then i went to run typed in cmd which brought up that screen i changed the directory to c:\java and then put in C:\Program Files\java\jdk1.6.0_07\bin javac HelloWorldApp.java and it says 'C:\Program' is not recognized as an internal or external command, operable program, or batch file. if i leave the space out of Program files .. it says it cannot find the path scecified

any help would be great .. thanks in advance

 Tags:

   Report

2 ANSWERS


  1. try:

    "C:\Program Files\java\jdk1.6.0_07\bin\javac" HelloWorldApp.java  


  2. try 'C:\Progra~1\java\..." the command line interface may not be accepting the space between Program and Files.

    Progra~1 is the short name for the Program Files folder.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.