You could use the env_keep
configuration option in sudoers and add "CLASSPATH"
so that the CLASSPATH
environment variable is carried into the sudo environment. This would only work if CLASSPATH
is already set in your home environment, but it sounds like you've already got that far.
This discussion on the Ubuntu Forums might help.