If I had a java application that needed specific environment variables to be set, but I cannot place them inside the bash.rc or bash_profile, nor can I place them in /etc/profile.d is it possible to have them set within the Java process? Or do these need to be set before the java process is run? Also manually setting them each time is not an option because I want them to be transparent to the user.
If I had a java application that needed specific environment variables to be set,
Share
Start the java process from a shell script. The script would first define and export the environment variables.