Yum install jre 7


















With that in mind, try to only install the version of Java that you need to run or develop your application s. This section of the guide will show you how to install Oracle Java 9 JRE and JDK bit , the latest release of these packages at the time of this writing. Throughout this section we will be using the wget command to download the Oracle Java software packages. Substitute the copied download link in place of the highlighted part of the wget command.

Then install the RPM with this yum command if you downloaded a different release, substitute the filename here :. If you installed multiple versions of Java, you may want to set one as your default i. Additionally, some applications require certain environment variables to be set to locate which installation of Java to use. This section will show you how to do this. The alternatives command, which manages default commands through symbolic links, can be used to select the default Java command.

To print the programs that provide the java command that are managed by alternatives , use this command:. Simply enter the a selection number to choose which java executable should be used by default. An easy way to append it to the file is to run this command:. Software Engineer DigitalOcean. Where would you like to share this to? Active Oldest Votes.

Executed sudo yum install java Improve this answer. This helped me solve a gradle error, on centos, about a missing Tools. Running my gradle command with an actual JDK fixed it. Thank you! Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Connect to us: Facebook Twitter Google Plus. Become a Supporter - Donate us some of you hard earned money: [paypal-donation].

Linux TechLab is thankful for your continued support. After java installed in my centos local machine , java -version command not working. How to resolve? Save my name, email, and website in this browser for the next time I comment. Press ESC to close.



0コメント

  • 1000 / 1000