VPS & Dedicated Hosting: Java | Bluehost Support
Support
  1. bluehost knowledge base

VPS & Dedicated Hosting: Java

Java is a widely used programming language that is used to help with cross-platform compatibility and many internet applications.

You will need to make sure that you have Sudo Access enabled. If you have not enabled Sudo access please see Enabling Sudo Access to learn how to do so.

Installing Java

There are many ways to install Java on a dedicated server. This is only going to show how to do it through the use of yum.

Here is how to install Java,

  1. Open an SSH client and log in.
  2. Then type: sudo yum install java

    This will install Java v.1.8.
    To install a newer version of Java, you will want to use the version-specific package. e.g. sudo yum install java-1.7.0-openjdk To make sure you are getting the latest version, you can go to OpenJDK.

  3. Press Y and enter.
  4. This will install Java for you.