• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

'javac' is not recognized

 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i try to compile from the command line the prompt says that javac is not recognized as an internal or external command, even though I can compile in eclipse.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Javac is a executable. You need it to be on your PATH, otherwise the operating system doesn't know where to look for it.
 
Ajay Joseph
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you run it in Command window you must set the path to the java where you have installed it.

if the Java in your system is jdk1.2.2(for eg) and is in D drive....

in the command window set path using this command

set path=D:\jdk1.2.2\bin

the bin path should be specified like this...

Ajay
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15216
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the installation notes for the JDK, especially step 5 (Update the PATH variable).

Follow the steps in Sun's Getting Started tutorial. It explains what the error means.
 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
working fine now!
cheers
 
Bobby McFarlen
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you soooooo very much kind sir. me before this post: me now:
[ July 08, 2006: Message edited by: Bobby McFarlen ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic