There are many tutorials available to help you install OpenJDK and JBoss. This is one on the latest concerning Oracle Java and Glassfish. Hopefully this will make deploying easier for Java EE developers.
You will need a droplet with Ubuntu 12.04.3 x64 that has been created with DigitalOcean. Login as root by ssh. This article assumes no Java installed and at least 1G memory, as Java EE servers are quite demanding.
Step 1): Install Oracle Java 7
Start by updating the package index:
You will need a droplet with Ubuntu 12.04.3 x64 that has been created with DigitalOcean. Login as root by ssh. This article assumes no Java installed and at least 1G memory, as Java EE servers are quite demanding.
Step 1): Install Oracle Java 7
Start by updating the package index:
## sudo apt-get update
In order to get Oracle Installer of Java 7, we need to add a new apt repository. In order to use add-apt-repository, you need to install python-software-properties. Here's how to do it by
## apt-get:sudo apt-get install python-software-properties
Now you can add the new repository and install from Oracle Installer:
Now you can add the new repository and install from Oracle Installer:
## sudo add-apt-repository ppa:webupd8team/java
Make source list up-to-date:
Make source list up-to-date:
## sudo apt-get update
Install Java 7 by
Install Java 7 by
## apt-get:sudo apt-get install oracle-java7-installer
After installing, confirm the current Java is Oracle version:
After installing, confirm the current Java is Oracle version:
## java -version
You will see this:
java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
You will see this:
java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
Comments
Post a Comment