If you are using assistive technology and are unable to read any part of the HostMonster website, or otherwise have difficulties using the HostMonster website, please call 866-573-HOST and our customer service team will assist you.
Skip to main content

HostMonster Web Hosting Help

VPS or Dedicated Hosting - Installing 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 login.
  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 verions you can go to OpenJDK.

  3. Press Y and enter.
  4. This will install the Java for you.
Knowledgebase Article 133,709 views bookmark tags: dedicated install java server yum


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

This is a tutorial on how to install Git onto the server.
Knowledgebase Article 153,686 views tags: dedicated git install server yum

VPS and Dedicated servers come with all applications necessary to run a standard web and email server. The applications that come with the VPS and Dedicated servers are generally supported as-is by our support technicians.

If you need to transfer or restore a cPanel account for your VPS or Dedicated server, there is a tool within the WHM panel to perform these tasks. This article is about transferring or restoring from another server or restoring after a re-image.
Knowledgebase Article 28,528 views tags: backup cpanel dedicated hosting restore server transfer vps

Related Help Content

To help with installing an SSL certificate for an account on a dedicated server through the WHM
Knowledgebase Article 186,687 views tags: assign dedicated server ssl whm

How to manage the SSL used for cPanel login through the WHM
Knowledgebase Article 154,889 views tags: cpanel dedicated install login manage server ssl

How to install ClamAV to help with virus protection.
Knowledgebase Article 99,114 views tags: antivirus clamav cpanel dedicated plugin server whm

How to install a Minecraft Server.
Knowledgebase Article 116,520 views tags: Minecraft dedicated vps

VPS and Dedicated customers with servers running the CentOS 6 operating system will not be able to upgrade cPanel past version 86. The cPanel team will still support CentOS 6 with cPanel 86 until March 31st, 2021.
Knowledgebase Article 28,635 views tags: centos cpanel dedicated hosting private server upgrade virtual vps

How to install NginX for reverse proxy and web performance enhancing.
Knowledgebase Article 116,715 views tags: dedicated nginx proxy reverse vps

How to setup name servers for multiple cPanel accounts.
Knowledgebase Article 189,943 views tags: accounts custom dedicated multi multiple nameservers server servers

This tutorial will help you be able to install the PHP PECL package APC. (Alternative PHP Cache)
Knowledgebase Article 107,233 views tags: caching dedicated pecl vps

This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here