• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Install JDK 8 and Maven 3 on Ubuntu 14.04 (HP Cloud)

By Abhishek Ghosh September 23, 2015 5:34 pm Updated on September 23, 2015

Install JDK 8 and Maven 3 on Ubuntu 14.04 (HP Cloud)

Advertisement

For Many Webapps in Java 8 We Need JDK 8 & Apache Maven. Here is How to Install JDK 8 and Maven 3 on Ubuntu 14.04 Running on HP Cloud. We can install this combination on any server running PHP5-FPM and Nginx without any issue, with or without virtual host on Nginx.

 

Note To Install JDK 8 and Maven 3 on Ubuntu 14.04 (HP Cloud)

 

We are showing the working and tested method on the date of publication for Ubuntu 14.04 LTS server distribution supplied by HP Cloud. Your hosting company may use a differently compiled version of Ubuntu 14.04 optimized for their setup. Commands will be the same and working, yet be careful if the hosting is different than ours.

If you want to remove later, only remove the packages – DO NOT remove the dependencies if Nginx and PHP5-FPM is serving a live website on the same server.

Advertisement

---

 

How To Install JDK 8 and Maven 3 on Ubuntu 14.04 (HP Cloud)

 

First, we will install JDK, then Apache Maven. Run update :

Vim
1
apt update

Check if Java is installed or not :

Vim
1
java -version

It is expected that you’ll get this output :

Vim
1
The program java can be found in the following packages...

We will install Java Development Kit (JDK), not Java Runtime Environment (JRE) :

Vim
1
apt-get install default-jdk

Apache Ant, Apache Maven, Eclipse etc. will need Java Development Kit (JDK). Notice this screenshot, the server has Java Runtime Environment not Java Development Kit :

Install JDK 8 and Maven 3 on Ubuntu 14.04 (HP Cloud)

Peoples are complaining this repo is disturbing, but we saw no issue :

Vim
1
2
3
sudo add-apt-repository ppa:webupd8team/java
apt update
apt-get install oracle-java8-installer

Java work is done. This step is optional, in case you want to manage Java, then run :

Vim
1
sudo update-alternatives --config java

Above is Java related matter, we are not going in to details. Install Maven from repository :

Vim
1
apt-get install maven

The above command install the Maven in /usr/share/maven and settings at /etc/maven. You possibly love to check the version of Maven :

Vim
1
mvn -version

In case you installed Maven in other source to /usr/share/maven3/bin/mvn, you should symlink in this way :

Vim
1
sudo ln -s /usr/share/maven3/bin/mvn /usr/bin/maven

 

How To Remove JDK 8 and Maven 3 on Ubuntu 14.04 (HP Cloud)

 

You will run the opposite command of apt-get install, i.e. apt-get remove for server running other softwares, like :

Vim
1
2
3
apt-get remove oracle-java8-installer
apt-get remove default-jdk
apt-get remove maven

Be careful.

Tagged With apt get maven 3 jdk 8 , how to install maven for jdk 8 , install maven 3 1 ubuntu with jdk 8 , installer maven3 on ubuntu 16 04 , maven 3 ubuntu , windows 10 linux subsystem maven3
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Install JDK 8 and Maven 3 on Ubuntu 14.04 (HP Cloud)

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • How to Install Apache Tika on Ubuntu Server

    Apache Tika is a Content Analysis Framework Which Can Be Configure With Web Software Like WordPress For Metadata Extraction of PDF, doc. Here is How to Install Apache Tika on Ubuntu Server.

  • How To Install Apache Maven on Ubuntu Server

    Apache Maven is a Build Automation Tool. Here Are the Steps on How To Install Apache Maven on Ubuntu Server. Maven Needed For Many Big Data Software.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy