- Open up a DOS/command prompt: Go to Start -> Run, then type cmd and hit enter key. Your command prompt should be showing something like: c:\>
- Now run 'java -version' ( c:>java -version ) and hit enter. It should say:
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
This means JDK 1.5 is installed properly on your system.
If it says something like:
The name specified is not recognized as as internal or external command, operable program or batch file.
OR IF IT SAYS:
Bad Command or file name.
This means that either java is not at all installed or java.exe is not in the path. If you are sure that it is installed then try:
c:> echo %path% (Or echo $PATH on unix)
See if C:\Program Files\Java\jdk1.5.0_04\bin (or the bin directory where you have java.exe) is there in the path.
If it is not, then either set the path in autoexec.bat (Win95/98) by adding a line: SET PATH=%PATH%;C:\Program Files\Java\jdk1.5.0_04\bin; or add it in the environment variables (WinNT: start->settings->control panel-> system->environment tab, WinXP: start->control panel-> system ->Advanced ->environment variables tab) .
For Win95/98, Restart the PC, or for WinNT, open up a new DOS window and repeat the above process.
- If you do not have java installed, please download J2SE 5.0 from Java Homepage.
|