However if the scripts in the java folder are moved to the /etc/env.d folder then the scripts are used.
Oops, sorry - I should read the java howto before I post such things.