I'm installing some software that needs the JAVA_HOME environement variables set. I read in the debian policy manual that system wide environment variables are a bad idea. I can see that. It suggests writing a wrapper script to start my program. The problem here is that you get a maintenance nightmare if you end up defining something like JAVA_HOME all over the place and then JAVA_HOME changes. Any ideas to solve this?