help this is about java

da one

Member
Apr 20, 2007
112
0
0
inside u
my %^%$ computer say when im tring to compile .java file

javac is not recognisebal as internal or external command.......

ive installed jdk 6
is there a specific path to install jdk

im new 1 for this $#$$ java

help
 

Anusha

Member
Jun 13, 2006
25,864
5
0
You have to set the "path" if you wanna compile from anywhere. Otherwise you have to set the working directory to where javac.exe is located (in bin folder inside the directory jdk is installed to) and compile. This is not practical.

Follow these steps to add bin folder to path variable.

Go to:
System Properties -> Advanced (tab) -> Environment Variables
In User Variables for <user>, created New variable. Name = Path, Value = path of the bin folder inside jdk folder. Eg: C:\Program Files\jdk-1.5\bin

Press OK and close it.
Now it should work.