0

My hardware: Dell Latitude 5310, 16gb ram, 256gb SSD, Installation Ubuntu 25.04. Need to install Oracle Java 8 to work with specific software that not work under open java. Downloaded jdk-8u451-linux-x64 and follow the installation instructions, when execute "sudo update-alternatives --config java", the alternatives appear, but when choose the one I want I get the following error message: "update-alternatives: warning: not replacing /usr/bin/java with a link" The proper alternative appears to be selected, but the system does not find it. I look all the possible solutions that I was able to find in the web, but no one worked. Obviously I'm making some mistake, but failed to identify it.

Thanks in advance.

3
  • 1
    What output do you get if you run /usr/bin/java --version? The "update-alternatives: warning: not replacing /usr/bin/java with a link" means a java has already been manually installed there, possibly just now. Commented Apr 30 at 20:09
  • alternatives creates symlink of the binary, so /use/bin/java is pointing to /etc/alternatives/java which points to /her/share/jre/bin/java. Follow the flow with "ls -la /use/bin/java" to see where your current java symlink is pointing to Commented May 1 at 2:06
  • If you need Java 8 only for single application, it may be easier not to install it system-wide. Just unpack JDK 8 distribution and launch your application with bin/java executable from JDK 8. Commented May 1 at 6:25

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.