• Post Reply Bookmark Topic Watch Topic
  • New Topic

unable to run javac from anywhere  RSS feed

 
Shalu Ban
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • 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??
 
Jeff Langr
author
Ranch Hand
Posts: 799
5
  • Mark post as helpful
  • send pies
  • 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-
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!