Correlation does not prove causality.
Roger F. Gay wrote:Check java sdk setup instructions for setting the JAVA_HOME environment variable. If you're using Windows, you create the environment variable by clicking on System in the Control Panel -> Advance System Settings -> Environment Variables (button). If JAVA_HOME is set correctly, then javac will be recognized everywhere.
I wrote:Is there a JDK "bin" directory on your path? If not, you need to make it so there is (or, I suppose, you could type in the full path, but that's really irritating).
David Newton wrote:
I wrote:Is there a JDK "bin" directory on your path? If not, you need to make it so there is (or, I suppose, you could type in the full path, but that's really irritating).
David Newton wrote:In the path, towards the front. You might want to get acquainted with how your OS works before going too much further--it will reap great dividends and make your life substantially easier.
Assuming your JDK is in c:\jdk1.6:If it's somewhere else, please use that path instead of the placeholder I used.
David Newton wrote:You'll need to put spaces around path names with spaces in them.
I don't understand why you haven't just tried it, or just typed in the complete path to the executable to see if it actually works--it'd be much, much faster than waiting for someone to help you here, no? Recall that even Windows has path completion via the TAB key.
And again: read up on the OS you're using; there are hundreds of tutorials, and Microsoft's own documentation, that tell you how to work in the environment you're working in. Why waste time not knowing how things work?
David Newton wrote:That's because you're executing from within the directory where javac is located, not where the Java source code file is located...
I wrote:You'll need to put
spacesquotes around path names with spaces in them.
No, tomorrow we rule the world! With this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|