compiling java program with javac *.java showing "javac is not recognized as an internal or external command "
nilakashnil
2007-04-02 09:13:19 UTC
when i am trying to compiling a java program in jdk1.5 then its showing "javac is not recognized as an internal or external command " operable program or batch file.
Four answers:
2007-04-02 09:21:37 UTC
You need to change your CLASSPATH and PATH environment variables to the directory containing javac and all of the other Java binaries (should be a directory named "bin").
nusdunda
2007-04-02 09:23:21 UTC
Hello :)
Do the following step (XP)
1) go to Control Panel -> System
2) click at "Advanced" tab.
3) See below, click at "Environment Variable" button
4) See in the "System variables" list box. double click at the line contains "Path" variable
5) add JDK1.5 physical path (C:\Program Files\Java\jdk1.5.0\bin) at the end in "Variable value" text box.
6) click OK (to all opened dialog)
7) open new Command Line window.
8) type javac again
:) enjoy
bjnksp
2007-04-02 09:22:10 UTC
You need to set your Java classpath.
This means that when you enter "javac" your computer does not know what that command does. When you set your classpath, you computer will then know where to look to see what "javac" does.
The following link has instructions on how to do this.
hammerstrom
2016-10-02 05:33:14 UTC
attempt placing the classpath employing command on the spot. set classpath="C:application filesjavajdk1.6.0_18bin". than sort javac and hit enter. If long record is displayed with java instructions than your direction is desperate. It the path is desperate than reproduction an identical direction and paste it on your environment variable. Cheers!!!
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.