javac command not located
I am attempting to compile a java program I located on the net and also it claims that I have to examine if javac is mounted. I mounted the JDK a long period of time ago so it should be functioning yet I get command not located mistake :
just how can this be settled?
It resembles the
javac executable can not be located due to the fact that you did not set your
PATH setting variable to include it. This is a straightforward solution.
Given that you are plainly making use of Windows XP ...
- Right click "My Computer" and also select "Properties". (or Win+Pause)
- Go to the "Advanced" Tab
- Click the "Environment Variables" switch near all-time low of the dialog
- Under "User variables" for your account, there need to be a
PATHvariable, if there is not click "New" and also create it with the variable name
PATHand also the value as the course to your jdk is
bindirectory site (something like
C:\Program Files\Java\jdk1.6.0\bin, it is various in between installments so you will certainly need to examine
C:\Program Files\Javafor a jdk variation). If it currently exists yet is vacant, transform it to the course to your jdk is
bindirectory site. If it currently exists yet is NOT vacant, add a semicolon (
;) in addition to the course to your jdk is
The value needs to resemble this :
If there were previous values, it needs to be divided with a semicolon thus :