Carlosinfl
Loves the juice
- Joined
- Sep 25, 2002
- Messages
- 6,633
I've got my CentOS 6.5 installation up and running & I would like to deploy OpenJDK 1.7.0 or Oracle JDK to the box correctly so that Java is available to all future users I add to the box. Normally I would create my user-base and then edit their ~/.bashrc to use JAVA_HOME and point it to $JAVA_HOME/bin/java but this is not practical if we would add several random users to the OS.
Can someone tell me how this is typically performed on production systems that require Java? I'm assuming there's some formality to this process that is recommended for RPM based Linux admins?
I can use yum to install OpenJDK 1.7.0 from the repository which will deploy the Java package in the correct directory and also eliminate any package dependency issues I'm likely to run into. So that is basically my projected install process on OpenJDK on my Linux system. The part I am really asking here for is guidance on how to correctly configure my Linux box to safely and correctly use Java from a system-wide level. I can see the Yum package manager will deploy Java in /usr/lib/jvm/ folder. My question is now for all users I create, how can I pass this into their environment? Is this something I need to edit /etc/profile for?
Can someone tell me how this is typically performed on production systems that require Java? I'm assuming there's some formality to this process that is recommended for RPM based Linux admins?
I can use yum to install OpenJDK 1.7.0 from the repository which will deploy the Java package in the correct directory and also eliminate any package dependency issues I'm likely to run into. So that is basically my projected install process on OpenJDK on my Linux system. The part I am really asking here for is guidance on how to correctly configure my Linux box to safely and correctly use Java from a system-wide level. I can see the Yum package manager will deploy Java in /usr/lib/jvm/ folder. My question is now for all users I create, how can I pass this into their environment? Is this something I need to edit /etc/profile for?