English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

recognized as an inernal and external command, operable program or batch file. Why is it doing it? I know my class is right and I change the path a million times. What can I do to sort it out?

2006-10-24 11:22:44 · 3 answers · asked by Insomnia 5 in Computers & Internet Programming & Design

3 answers

It's because the JDK tools (exe's) are not on your system path.

On Windows XP (2000 is similiar), open Control Panel, open System Properties, and select the Advanced tab.

Click the "Environment Variables" button. In the lower pane of the dialog window, there is a table labeled "System Variables". Scroll down and find "Path". Select it and click the "Edit" button. Move the cursor to the end of the path and add the path to where you installed the JDK and to the "bin" directory, such as this:
path=c:\windows\system32;c:\(blah blah blah);c:\java\jdk1.5.0_08\bin

Now, Windows will be able to find the JDK tool exe's, such as javac.exe. Also of note, if you decide to install multiple versions of Java, you may want to use a system variable such as JDK_HOME or some such, and set that to point at the \bin directory. Then, on your path you add (old path);%JDK_HOME%\bin instead of the actual path. That way, you can just change JDK_HOME w/o changing the path all the time.

2006-10-24 11:39:02 · answer #1 · answered by vincentgl 5 · 1 0

It cannot find the javac compiler program itself. Have you downloaded java runtime or sdk to your computer, and is the bin directory in your PATH. Do a search in windows explorer for javac, it will tell you where it is, or isnt.

2006-10-24 18:32:12 · answer #2 · answered by John S 4 · 0 0

have you set your classpath variables correctly as well?

2006-10-24 18:27:27 · answer #3 · answered by javaHungerForce 3 · 0 0

fedest.com, questions and answers