Hi there AppWorks fans,
Welcome to a new installment of AppWorks tips.
This guide will help you installing OpenJDK Java on our CentOS VM image. Easy stuff, but always nice to see how smooth this goes.
This post is part of the series for ‘AppWorks installation in 10 great steps’.
This is the list of ingredients we are going to use:
- The already installed ‘Oracle Virtual Box’ software from the previous post
- Our brand-new CentOS VM image from the previous post
- PuTTY (SSH client). Downloaded from putty.org
Let get right into it…
First thing to do is open the Oracle VM VirtualBox tooling and start-up our image. Leave the image as is because we can make a connection with PuTTY. Login with the created ‘otadmin’ user. Password used as an example: ‘admin’
Once the connection is made, we need to install OpenJDK first as it is required to run TomEE. But what version is required? This can again be found in the ‘AppWorks Platform Supported Environments’ documentation that can be found on the support site from OpenText.
The documentation tells us to install Java 8 update 60
So, from your terminal screen give the command:
sudo yum -y install java-11-openjdk-devel
When done you should have java available by the command:
You will get this information back:
openjdk version "11.0.3" 2019-04-16 LTS
To make it nicer and smoother we will create a new variable JAVA_HOME (and some others!). So, edit the ~/.bash_profile of the ‘otadmin’ user:
<Insert>to start making changed
<Esc>to stop making changed
- To save the file (after
- To quit the file (after
When done reload your profile via the command:
Check if it’s all OK via:
env | grep java
That’s again a nuckle-bumb ‘DONE’. Good job for this post! The next step in the series for ‘AppWorks installation in 10 great steps’ we’ll install the TomEE application server. Have a good one for now and I’ll see you in the next post.