Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Every time I try to use "javac" in the command thing, it tells me that it can't find it.?
I'm trying to do the hello world activity and I'm failing miserably...I don't understand why it's not working. I downloaded the JDK 7 thing, and installed it.
my teacher said not to use eclipse yet :(. But I do have it. Nice to know it makes stuff easier :)
4 Answers
- ?Lv 610 years agoFavorite Answer
There are two ways
1)Go to the folder where you installed JDK there will be a bin folder
keep your file in that folder and now run your program
2)Right click on My Computer
Advanced
Add new environment variable with the value as path of bin folder
But I would suggest you to use an IDE like Eclipse or NetBeans
Source(s): Visit my blog http://www.codexjava.blogspot.com/ - 10 years ago
You have to add the path to the jdk to your system's path environment variable.
If you install your jdk in c:\jdk, you should add c:\jdk\bin to your path variable, so that your system will be able to find the javac command.
Alternatively, use a IDE such as Eclipse or Netbean, all the necessary path will be set up for you.
- 10 years ago
I had the same problem at first when i began Java programming, I just kept on trying it over again until I got it right. Make sure you followed the right steps.