java-config generated /etc/env.d does not set ROOTPATH. So therefore java tools are not available for root and packages that need java to be build cannot be built.
java-config 0.2.1 fixes this.