I am a beginner in java so I have installed java jdk 5.0 followed your instructions given in FAQ's but having a problem when i set path value in system variables to JAVA_HOME\bin, it disables my laptop bluetooth device and still when I type javac-version in command prompt it gives an error that javac-version is not recognized as internal and external command operable or batch file.
please help me to get started with java.
thanks for your reply
actually I am using windows 7, when I open environment variables then already there are 2 user variables-:
1.TEMP with value-%USERPROFILE%\AppData\Local\Temp
2.TMP with value-%USERPROFILE%\AppData\Local\Temp
then In System Variables the PATH value is-:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\x64\
I have read FAQ's and made a system variable"JAVA_HOME" with value to "C:\Program Files(x86)\Java\jdk1.5.0_22"(without double qoutes)
this path links to bluetooth so when I change this path to "%JAVA_HOME%\bin;"(without double qoutes) it gives system error to try reinstalling bluetooth.
the main problem for me is bluetooth not working and also after doing all this "javac -version" corrected by campbell is not working on command prompt.
I have also tried reboot.
Java.exe is there in bin folder and when I run it from there it appears on screen for 2 sec and then got closed.
thanks for your co-operation.
Come on now. The PATH variable has all sorts of important things in it, as you can tell just by looking at it. So don't just delete all of those important things, otherwise you could break something. As you have already seen.
Just add your JRE to the end of it. You should be able to tell how that's done: there's a delimiter which separates the names of the programs in the path, so use that.
PATH and JAVA_HOME are not the same. You must set PATH correctly if you want to be able to run "java" and "javac" from the command line.
I'm wondering, the times you tried to include the JDK bin directory in the PATH, did you by any chance simply overwrite the entire PATH value, or did you append the JDK directory to the PATH; separated by a semicolon ( ; ):