A question about installing JDK/Java with yum
Hi,
As I list the available JDK with yum I got followings: Code:
... 1. Can I install all these? If yes, how can I find out where are these (under which dir) installed? 2. How can I set the JAVA_HOME? 3. I can also install the Java manually such like download the zip und unpack it. What's the ad and disadvantage using yum or not? Thomas |
Hi,
You'll only need the most recent one...so Quote:
Quote:
Quote:
Luck Thor |
Quote:
Quote:
|
No problem having 2 .. 4 versions. And don't set any "JAVA_HOME".
Use the "Redhat method" : The alternatives "version switcher". 1) su 2) /sbin/alternatives/ --config java And if a new version has not been automatically added to /etc/alternatives, a command like this will do : /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jre1.6.0/bin/java 20000 or /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_26/bin/java 2 http://www.if-not-true-then-false.co...-red-hat-rhel/ The location etc. can be found with : ls /usr/java . |
Hi,
In our case we use different JDK versions at the same time by different user. That menas the version switcher is not suitable in this case. |
Different versions for different users
IN that case: you might -- set the JAVA_HOME on the users profile, .bash_profile, or .bashrc (or as appropriate depending upon their shell) and add ${JAVA_HOME}/bin to the PATH for that user (in the same file).
|
All times are GMT -5. The time now is 04:34 PM. |