• 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

unable to run javac from anywhere

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My path variable has been set to point to D:\Program Files\jdk1.4\bin but even then i am not able to use javac command from anywhere except in D:\Program Files\jdk1.4\bin. the Java_home variable also has been to set to point to the jdk.
I did the same for Ant tool and it is working fine. i am able to run ant from anywhere. But the same is not working for Java
Bugs me! any ideas??
 
author
Posts: 799
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try using the "DOS 8.3" short name of program files. Or enclose the whole path in quotes. How are you setting the path?
Type just path at the command line and make sure it has everything you expect.
To see the short name, do a dir /x. c:\Program Files usually (always?)shows up as c:\PROGRA~1.
-Jeff-
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Java_home - variable is 'JAVA_HOME' - don't know whether this matters on WinXY.
 
Shalu Ban
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Jeff!
i replaced program files with its DOS name and LO! it works! now i can compile java files from anywhere. Thank u!!
thanks Stefan for your response. It is JAVA_HOME. i typed Java_home coz i was lazy to press the shift key here in the message
reply
    Bookmark Topic Watch Topic
  • New Topic