Java makes use of something known as enviroment variables. These tricky buggers can easily mess up all of your hard coded errr code! The amount of times I have messed about with class paths does not bare thinking about!
This section will cover what and how to set you your enviroment variables.