• Post Reply Bookmark Topic Watch Topic
  • New Topic

java compilation error  RSS feed

 
bashir adil
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using jdk1.6.0_04 . and I have set path variable to C:\Program Files\Java\jdk1.6.0_04\bin but when i am trying to compile any java program written anywhere then it shows me the error as follows............

'javac' is not recognized as an internal or external command, operable program or batch file.

I have done all the steps that was published for this error in this forum or other forums but still the error persists.
The echo %PATH% : displays as is given in the attachment



Please help me how can i solve this error?
error.jpg
[Thumbnail for error.jpg]
echo %PATH %
 
Ivan Jozsef Balazs
Rancher
Posts: 999
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> I have set path variable to C:\Program Files\Java\jdk1.6.0_04\bin

Nope. you seems to have set it to
C:\Program Files\Java\jdk1.6.0_04\bin\Project Java

Do you see the subtle difference? The system does.
 
bashir adil
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check the attached image, i have run "echo %PATH%" command and there it is not mentioned ........\bin\project_java; which indicates that my set path is right. but still itz not working
 
bashir adil
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks it got solved..
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javac adil wrote:check the attached image, . . .
Not at all. Images are difficult to read and you should always use copy‑and‑paste.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!