MS-DOS javac not recognized

Problem:

Compiling the .java using MS-DOS gets an error with “javac” is not recognized as an internal or external command, operable program or batch file.

Solution:

To solve this error update the Path Variable by following the instruction below.

  1. Rigth click on My Computer and select Properties.
  2. Select Advanced Tab.
  3. Select Evironement Variables
  4. On the System variables group box find and select the Path then click  edit button.
  5. Then add the location of the java bin usually located at “c:\Program Files\Java\jdk1.6.0_\bin\” by separating it with “;” without double quotes

sysvariables

    1. No comments yet.
    (will not be published)
    Submit Comment

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word

    Subscribe to comments feed
    1. No trackbacks yet.

    SetPageWidth