0
jdk-8u101-windows-i586
installed jdk 86 bit for windows vista however the command prompt does not locate it and getting info like "'javac' is not recognized as an internal or external command...." -what to do then?
3 odpowiedzi
+ 2
You have to setup java environment variable.
1.Right click on My Pc
2.Select properties
3.Open Advance system setting
4.Click on 'Environment variables'
5.Find 'PATH', select it & then click on edit.
6.Then open the jdk installed location(Default location: c->Program file(x86)->java->jdk->bin) copy the path
7.Now click on new(In environment variable->path) and paste the copied location
8.Now copy the path (c-pf(x86)-java-jre->bin)
9.again click on new and copy the path
10.Click OK. Done
You also can search on google "How to setup java environment variables"
0
you directly access java/javac in the command prompt by writting its full path eg c:\java\jre\bin\javac.exe name.java
- 1
hi