Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
5k views

alternatives java -OpenJDK RHEL

I have the following setup (on multiple machines with RHEL7): $ which java /usr/bin/java $ ls -ltr /usr/bin/java /usr/bin/java -> /etc/alternatives/java $ ls -ltr /etc/alternatives/java /etc/...
dejanualex's user avatar
3 votes
1 answer
7k views

How can I reload java module

We are building a java source. When we build it with the official repo of Ubuntu it actually installs 10.0.2. see -------- which javac --------------- /usr/lib/jvm/java-11-openjdk-amd64/bin/javac ----...
Zach's user avatar
  • 357
1 vote
1 answer
6k views

Java is running from /usr/java/latest/bin/java instead of /usr/bin/java

I have the latest version of Java installed on my system. But I wonder why when I run any program, the location from where java executes is /usr/java/latest/bin/java instead of /usr/bin/java. [prompt ...
dryleaf's user avatar
  • 206
1 vote
1 answer
4k views

Installing jre-8u51-linux-x64.rpm on SLES 11 SP3: Failed dependencies

I tried to update my Java installation on a SLES 11 SP3 system using rpm -i jre-8u51-linux-x64.rpm (for some reasons I want to run the original Java and not the IBM Java provided by SUSE) and I got ...
Sir Cornflakes's user avatar
1 vote
0 answers
951 views

java version not found in redhat

My OS is redhat linux. It's having the default java 1.4.2, but I need java 1.7.45, for that I am trying as follows: /usr/sbin/alternatives --install /usr/bin/java java /u01/java7/bin/java 5 /usr/sbin/...
harsha's user avatar
  • 11
1 vote
1 answer
753 views

Installing java 1.6 when 1.7 already installed?

I have java 1.7 installed and I am trying to install java 1.6. I have updated java_home and path variable pointing to the new location, also ran these commands. sudo update-alternatives --set java /...
Sahil's user avatar
  • 705
17 votes
1 answer
19k views

What is the difference between JAVA_HOME and update-alternatives?

I have been trying to figure out the best way to run OpenJDK Java Runtime as default Java for my Fedora box and use Oracle JDK 6 for Android development namely for running Android SDK Manager, Android ...
Sudhir Singh Khanger's user avatar
3 votes
2 answers
6k views

I deleted /etc/alternatives/java [closed]

I'm on Ubuntu 12.04 on a 32-bits Dell machine. I was trying to install java JDK for 32-bits linux platform and I accidentally deleted the file /etc/alternatives/java. I would love to recreate my ...
Hugo's user avatar
  • 33
11 votes
2 answers
6k views

update-alternatives just for one user

I'm using a shared server. On that server different versions of Java are installed: Selection Path Priority Status ----------------------------------------...
Aslan986's user avatar
  • 521
1 vote
2 answers
4k views

Several versions of Java on one PC

I want to use jre-1_5_0_21 on my Fedora 14 box. Here's what's installed on my PC: $ update-alternatives --config java There are 2 programs which provide 'java'. Selection Command -------------...
LanceBaynes's user avatar
  • 41.5k