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

โˆ™ 2012-09-25 13:53:13
This answer is:
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
User Avatar
Study guides

Mixture

1 card

Class

โžก๏ธ
See all cards
5.0
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
1 Review

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
Related questions

Is ls is external or internal command?

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


How do you stop the error Java is not recognized as an internal or external command operable program or batch file?

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 :)


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.


Distinguish between internal and external file commands with example?

It depends on the shell program you are running in your environment; there are a number of 'internal' commands that are recognized by the shell and do not exist as "commands" on the system anywhere. Any command that is not internal to the shell would be considered an external command. To find a list of basic external commands, try to do a 'ls /bin', which lists very essential and common external Unix commands. Look at the 'man' or 'info' entry for your shell to find a list of internal commands. An internal command would be one that is recognized by the shell and the shell does not have to execute a program to do the command. An example would be the 'alias' command, which creates, removes, or lists aliases in the environment. An external command would be one that you might find in the /bin directory, such as 'ls'.


What is the difference between 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 an internal and an external command in Unix?

An internal command is one that is built into the shell or command interpreter, rather than executed as a separate binary.


Main diff between internal command and external command in dos?

In MS-DOS there are two types of commands. An Internal command, which is a command embedded into the command.com file, and an external command, which is not embedded into command.com and therefore requires a separate file to be used. For example, if your computer does not have fdisk.exe and you try using the fdisk command, you would receive an error "Bad command or file name." Fdisk is an external command that will only work if fdisk.exe, or in some cases, fdisk.com, is present. However, as long as MS-DOS is running on your computer internal commands such as the CD command will always be available and does not require any other files to run. Computer Hope's MS-DOS page lists what commands are external and what are internal on each of the command pages. In addition, you can see our dictionary internal command page and/or external command page for a complete listing of each of the internal and external commands available.


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 Internal and External Dos command Describe with five Example?

In MS-DOS there are two ways commands are executed. An Internal command, which is a command embedded into the command.com file, and an external command, which is not embedded into command.com and therefore requires a separate file to be used. For example, if your computer does not have the fdisk.exe file and you try using the fdisk command, you would receive an error "Bad command or file name" error message. Fdisk is an external command that will only work if fdisk.exe, or in some cases, fdisk.com, is present.


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.


Is Ping Command an MS DOS External command?

yes it is an external command.


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.


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.


Internal DOS commands and their meanings?

the deleted file if ms dos can be recovered if you use the command mention below immediately,the command is : need External Dos commands and internal dos commands with their meaning


What command staff position serves as the conduit between internal and external stakeholders including the media?

Public Information Officer


Why is it that when you run cmd in XP and type 'edit' it says that edit is not recognised as an internal or external command?

Then something is wrong with your PC


What are internal DOS command?

In DOS systems, an internal command is any command that resides in the COMMAND.COM file. This includes the most common DOS commands, such as COPY and DIR. Commands that reside in other COM files, or in EXE or BAT files, are called external commands


What are the two major classifications of DOS commands?

Internal and external commands. Internal commands are built into the command processor. Internal commands include, but are not limited to the following: * dir * mkdir * rmdir * cd * cls * del * copy External commands are not build into the command processor, and depend on the executable being in the path. These are typically .COM or .EXE files. Here are a few examples of these external commands: * format * chkdsk * fdisk * deltree


Is Print Command an external command?

Yes.


What is internal command and examples of internal command?

A command that is stored in the system memory and loaded from the command.com


Do the files copied to an external hard drive disappear from the internal hard drive?

No, they don't disappear, unless you use the command move to...


How can you identify by seeing in the prompt whether the command is external or internal in unix?

You really can't. There is nothing in a prompt that would give that information.


What are internal and external commands of DOS?

INTERNAL COMMANDSThese are those commands which are contained in command.com files of MS-DOS.These are those functions that are built into the command interpreter.There is no need of any external file in computer to read internal MS-DOS command.These commands can be used as long as DOS is running on the system.Internal commands do not vary from system to system.These are ver, time, del, md, cd, copy con, cls, date, vol, ren, copy etc.EXTERNAL COMMANDSThese are those commands which are not in-built in MS-DOS.External commands are those which are not included in the interpreter.There is a need of an internal file in the computer to read external MS-DOS command.External command may vary from system to system. This means any two computers with same version of MS-DOS may have same internal commands, but may have different external commands.These are tree, xcopy, diskcopy, more, print etc.To execute the command the name of command has to be typed at the promt along with its argument such command is external command.