answersLogoWhite

0


Best Answer

If you are getting that error, it means that either Java is not installed, or is not in your path.

If Java is not installed, go to http://www.java.com to install the most recent version of the JRE.

If you're sure you have already installed Java ensure the Java executable is in your system's path. You can do this by first finding the directory it is installed in. For example, mine is installed in C:\Program Files\Java\jre6. The executables are located in the bin directory.

In order to set your path (Assuming Windows Vista), go to Start -> Control Panel -> System, then click on the 'Advanced System Settings' link on the left, then the 'Environment Variables' button. In the lower section (Labeled 'System Variables'), scroll through and find the item labeled 'Path' and double click it. In the field labeled 'Variable value' go to the end and add a semicolon (;), and then the path your installation of Java is located. Using the example I gave above, I would have added ;C:\Program Files\Java\jre6\bin to the end of the line.

The procedure for 64-bit Windows Vista or Windows 7 is the same, except the text you will add to the Path variable is ";C:\Program Files (x86)\Java\jre6\bin". Notice there is still a semi-colon at the beginning of the line.

Once you have done this, you will need to close and reopen the command prompt if it is already open, and you should be able to run java without getting this error message.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

1. Remove java then reinstall

2. check your up to date

3. make sure you using the correct command

4. make sure your an administrator (or run it as a)

5. try again :)

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you stop the error Java is not recognized as an internal or external command operable program or batch file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is ls is external or internal command?

The 'ls' command is an external command (found in /bin)


What does DOS mean when it tells you bad command or file name?

The DOS message "bad command or file name" means that the command you entered was not recognized as an internal command or as an external command in the working directory or path.


What is the difference Internal and External command?

Internal commands are functions that are built into the command interpreter, External commands are those not included in the interpreter, and are instead invoked by calling an external binary. Whether or not a particular command is internal or external varies by system. For example, echo is an internal command in MS-DOS (it is built into COMMAND.COM), while in most Linux systems, it is an external one, provided by GNU coreutils.DOS Internal command is associated with his Shell file Command.Com.. DOS external command is saved on the disk..


What is the difference between internal and external command?

Internal commands are the commands that are executed <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> directly by the shell. These commands will not have a separate process running for each. External commands are the commands that are executed by the kernal. These commands will have a process id running for it. Internal commands are stored in the cmd.exe command interpreter, ex. Dir External commands correspond to a .com or .cmd file, ex.


Distinguish between internal and extarnal commands with examples for unix?

Internal commands are executed by the shell and do not exist as a separate binary program. You can find out which of these there are by looking at the 'man' entry for the shell you are using. External commands can be found in various directories, such as /bin, /usr/bin, etc.


What are the types of MS DOS command?

1. Internal Command: Present in Command.com..2. External Command: Present in the disk..


How can you recognize whether a command is internal or external in unix?

There is no easy way - if there is a path name involved then it is external. You could use the 'whence' or 'whatis' commands to see if they are an alias or internal command, but that varies depending on which login shell you are using.


How you check that path is set for java compiler?

Open command window "cmd" from Windows prompt. Type in "javac" in the window. The command should execute giving full usage of javac and its options. If you get an error message saying that "Javac is not a recognized as an internal or external command", than the Path has not been set.


What are the two kinds of dos commands?

Command Name - the command to be carried outParameter - object the command should act onSwitch - modifies the way you carry out a command represented by a forward slash (/) and a character e.g. /FExample.:C:\book>Tree /F


List of internal and external commands in unix?

A list of internal/builtin commands is available for each shell environment by looking at the 'man' entry. Anything not listed there is either an alias or an external command.


Why UNIX commands are divided into internal and external commands?

An internal command is one that is built in to the shell interpreter and is likely to be used quite a bit. An external command is a file in a directory that can be searched, loaded, and executed. The reason for having internal commands is for performance; it takes a lot less time to have the shell just execute the given internal command than it would take to find it on the system, load it into memory, and then execute it.


What is the difference between an internal and external command?

Internal commands are commands that are already loaded in the system, It can be executed at any time and are independent. external commands are loaded when the user requests them. Internal commands don't require a separate process to execute them.