• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

'JAVAC' is not recognized

 
nilanil kumar
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what it means when compile program
'JAVAC' is not recognized as an internal or external command,
operable program or batch file.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means that either you don't have the javac compiler installed on your machine, or more likely you have not set up your PATH environment variable to include the your JDK's bin directory. You need to tell your operating system where to look for an excecutable called javac and you do that by setting the PATH.
 
Nischal Tanna
Ranch Hand
Posts: 182
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u will have to either do 1 of the foll things :

1. execute set path=%path%;<bin path of jdk>at the command prompt where u r using javac <filename.java>
for e.g. : if ur jdk home is c:\jdk1.5

command will be : set path = %path%;c:\jdk1.5\bin

2. set the value of the environment variable "path"
value of the path variable will be same as above : path = %path%;c:\jdk1.5\bin
 
K Riaz
Ranch Hand
Posts: 375
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just add, if you're running Win2K or XP, you can set the path by right clicking on "My Computer" > System > Advanced > Environment Variables.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic