Question:
java is not recognized as an internal or external command, operable program or batch file.?
2009-02-07 19:30:19 UTC
Well i am trying to play a runescape private server and im getting this error...java is not recognized as an internal or external command, operable program or batch file.

Can someone please help me?

I am pretty bad with computers so be specific weather it be obvious or not.
Three answers:
Douggie
2009-02-07 20:04:09 UTC
You need to add java to your PATH variable. I found the following instructions.



* Windows 2000/XP users may set their path by right-clicking on 'My Computer' and selecting 'Properties'. Under the 'Advanced' tab, there is a button that allows you to set the 'Environment variables'. Click on this and alter the 'Path' variable so that it also contains the path to the Java executable. For example, if you have installed Java in c:\jdk and your path is currently set to C:\WINDOWS\SYSTEM32, then you would change your path to read C:\WINDOWS\SYSTEM32;c:\jdk\bin

When you open a new command prompt, it will reflect these changes and allow you to run java programs by typing "java". If you have installed the SDK, then you will also be able to run "javac" to compile stuff.

* Windows 95/98/ME users may find that their path variable is stored in a different place. Edit the c:\autoexec.bat file and add the following line at the end: SET PATH=%PATH%;c:\jdk\bin

(This also assumes that you have installed Java in c:\jdk)

* Linux, UNIX, Solaris, FreeBSD users must set their PATH variable to point to where the java binaries have been installed. Please refer to your shell documentation if you have trouble doing this. For example, if you use bash as your shell, then you would add the following line to the end of your .bashrc: export PATH=/path/to/java:$PATH
?
2016-10-01 12:05:16 UTC
so a techniques as I keep in mind - and it quite is been a whilst - you will might desire to characteristic a 'direction' variable on your startup records, or gain the comparable result by fiddling around interior domicile windows itself. in reality - domicile windows command on the spot does not understand concerning the 'java' command devoid of being advised. putting the path will tell domicile windows to examine the objective itemizing, to be sure if the relevent command might nicely be got here across. Google 'java set direction', and pass from there.
2009-02-07 21:16:02 UTC
Have you downloaded and installed Java? (It doesn't come with Windows.)


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...