Well I have been trying to add a path to environment variables so I dont have to make it manually every time I restart the computer. I am running windows XP and under environent variables I have a avariable called Java pointing to C:\Program Files\Java\jdk1.5.0_08\bin under system variables. Now to make it easy I have all my progams under c:\java\Program\ and well I have to go to this path in command prompt and do a path C:\Program Files\Java\jdk1.5.0_08\bin to even be able to compile. I can however run the programs but i guess that is due to having JRe installed.
I have multiple JDKs and made some batch files to do the PATH command very much the way you were typing it. That's not as seamless as setting it in the environment, but better than typing complex paths. Here's a sample:
At different times I've had other things in here, too, such as CLASSPATH and variables for other products.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi