Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the java path and classpath in windows-64bit

Tags:

java

classpath

I have installed java on windows-64bit OS. but when I execute javac, it is failing with the

error message no such command is available". I have created following environmental variable

CLASSPATH C:\Program Files (x86)\Java\jdk1.6.0_05\lib

like image 459
Bharath Avatar asked Sep 17 '11 15:09

Bharath


1 Answers

Add the appropriate javac path to your PATH variable. java.exe will be found under the bin directory of your JDK. E.g.

SET PATH=%PATH%;C:\Program Files (x86)\Java\jdk1.6.0_05\bin
like image 173
krock Avatar answered Oct 11 '22 12:10

krock