You haven't set your classpath.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
Skill Endorsements: 21
Put a period at the end of your classpath so that it looks like this:
.;%classpath%.;C:\Program Files\Java\jdk1.5.0_04\lib\tools.jar.
I must warn you though, recently I've learned that setting the classpath variable to tools.jar isn't the best way to do it anymore. It will still work, but it's not recommended by professionals.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
Skill Endorsements: 21
I'm not sure why that's not working, unless you have more to your classpath. If that's the case, be sure the seperate using a semi-colon(;).
The other(better) way...I really don't know much about it.
See this thread for a little help:
http://www.daniweb.com/techtalkforums/thread26307.html
I really can't help you much with that though. I'm sure Mr. Wenting would be willing to help if you ask.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
Skill Endorsements: 21
No, it has to be one of your path variables. The reason it doesn't work is because it cannot find javac.
Anyways, I'm thinking it could be your Path variable(not the classpath since it looks correct). Please post your PATH variable. You might be pointing it to the jdk directory when you should be pointing it to the jre directory.
The path variable is located at the same place the classpath is, or you can type this at the command prompt:
echo %PATH%
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
Skill Endorsements: 21
Eh where's the edit button...how'd I edit it last time ._.;;
Anyways the restart did it. Though I wonder why the java command would work while javac wouldn't...*shrug*
Sorry, looks like we posted at the same time. Some times you do need to restart your computer for changes to take affect. The java command just invokes the JRE, so no problem should arise there. Anyways, glad you got it fixed.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
Skill Endorsements: 21
I'm sorry, but you do realise that this thread was over two years dead, until you rejuvinated it, right?
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,484
Solved Threads: 494
Skill Endorsements: 16
But there was a resolution. did you see posts 8-10.
In post 8 a restart, in post 9 "set the PATH", in post 10 explained that the restart simply let the change (to the path that the installation itself did) take hold globally (she/he was probably using a cmd shell that had been open for a while).
So, as you can see, the answer was already given. Please do not resurrect old threads unless absolutely necessary (which it almost never is).
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,484
Solved Threads: 494
Skill Endorsements: 16
Another person who doesn't bother to actually read the thread.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,484
Solved Threads: 494
Skill Endorsements: 16
^what masijade said several years ago :icon_rolleyes:
zeroliken
Nearly a Posting Virtuoso
1,346 posts since Nov 2011
Reputation Points: 214
Solved Threads: 205
Skill Endorsements: 13