When rebooting and logging in, it should source all the scripts in /etc/profile.d/ that end in. If you are using the SlackBuild on SBo, it installs the scripts to /etc/profile.d/ and marks them as executable.
The package can be found in the folder SRC/MAIN/JAVA of our sample. As our intent is to create an executable JAR file, we have to create a main class.