• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java compilation error

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 %
 
Rancher
Posts: 1044
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks it got solved..
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic