• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Path trouble  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If my path says it's this:

C:\>path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\pathWbem;C:\Program File
s\QuickTime\QTSystem\";"c:\Program Files\Java\jdk1.6.0_02\bin;";C:\WINDOWS;C:\WI
NDOWS\COMMAND;C:\PERL\BIN;C:\PROGRA~1\BORLAND\CBUILDER\BIN;"C:\Program Files\Sym
antec\Norton Ghost 2003\";"C:\Program Files\Java\jdk1.6.0_02\bin"

Can anybody please tell me why I get this:

C:\>javac c:\files\MyFirstApp.java
'javac' is not recognized as an internal or external command,
operable program or batch file.

As you can see, there are two references to the jdk bin directory, even though I swear I've only got it in there once in the environment control panel applet.

Thanks.
 
lowercase baba
Bartender
Posts: 12627
50
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you checked to make sure you really have a javac.exe in one of those directories?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!