D_ _ n
This is Vector specific - where initiate services get located:
E.G., What is content of /etc/rc.d/initd ~ Are they symlinks or actual run commands
Are you trying to develop Java Apps/browser enhancements or ??
Does your install include IDE wrappers, debug utilities ?
(Much easier to "step in/out" JIT Java scripts)
Most Distros already include JRE for Java/Javascript - Browsers search, install plug-ins
Most home use, enabling Java for Browser interactions ~ is a considerable security risk
(Linux is immune from viruses , NOT embedded graphical malware -most of which
rely on Java to execute BECAUSE it is a universal to most all O/systems)
Obviously, it's NOMB ~ It only suggested to please consider ~ if presently having problems sorting out VL initiate sequences
you may wish to re-evaluate logic of original intent
EDIT: my /etc/profile.d directory contains - not just a start command:
It exports environment path
export MANPATH="${JAVA_HOME}/man:${MANPATH}"
export JDK_HOME=${JAVA_HOME}
export JAVAC=${JDK_HOME}/bin/javac
unset gentoo_user_vm gentoo_system_vm user_id
To ensure any change "sticks" after session, it may be required to update (system config) environment
Best luck