Where Is Java Path in Redhat Linux?
Contents

Where is my java path Linux?

This depends a bit from your package system … if the java command works, you can type readlink -f $(which java) to find the location of the java command. On the OpenSUSE system I’m on now it returns /usr/lib64/jvm/java-1.6. 0-openjdk-1.6. 0/jre/bin/java (but this is not a system which uses apt-get ).

Where is java installed on Redhat Linux?

Managing Java versions

JRE and JDK packages for Red Hat Enterprise Linux are installed in separate directories under /usr/lib/jvm . This allows them to be installed concurrently. However, only one version can be in the shell’s command path as java or javac at a time.

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest