Well, I've noticed SO many people have trouble on this part. That's why I made this. You browse for your JDK folder and click Apply! Done!
Screenshot:
So you don't fuck up, it checks if you've selected the right folder. It does this by checking if the folder starts with "jdk", and it has some of the files in the bin folder that the JDK comes with.
If you've already got your JDK set, it will prompt you to continue. If you do, it'll just write it to the line.
At the bottom textboxes, you can see what was loaded, and what will be saved. This is good if you don't trust it.
So, the download...
http://www.mediafire.com/?ctfcgg0mmdu
Oh and finally, you need the .NET Framework 2.0 or higher (Meaning atleast Windows 2000 SP4). I developed it using C# .NET 2005. And I also didn't feel like changing the icon.
If you're totally lost on what to do, follow these instructions.
1. Open the program.
2. Click on the "Search" button.
3. Navigate to your "JDK" folder. It starts at "C:\Program Files\Java". Basically, go there and click the folder that starts with "jdk".
4. If you did it right, it won't give you any warnings.
5. Click the "Apply" button. If done right, it should say "Successfully changed!" Big Grin
Congratulations!! You did it!!!
Note: You must have permissions to edit your environment variables. For example, if you're using Windows Vista, you must run under an Administrator account.