Wednesday, December 17, 2008

Adjusting PATH variable for Java

I was fiddling with the adjustment of the PATH variable in my Win XP for my Java JDK. I pointed the PATH variable to the /bin of my latest JDK and nothing else. So it's "PATH=C:\Program Files\jdk1.6.0_01\bin" if you put it in text form. Next , I tried to do a 'ping' and an 'ipconfig' in my cmd the next day and it says that ping / ipconfig is not recognized as whatever internal command type of error. I noticed that system32 is also using PATH so I set "PATH=C:\Program Files\jdk1.6.0_01\bin;C:\Windows\system32" and now , you have Java's JDK and system32 using PATH ... happy ending. I can do my Java stuff and ping and ipconfig.

No comments: