Java 8 application on EC2

+1 vote
Keeping it simple I wish to know if we can install Java 8 on an EC2 instance? Java 8 should alone do the job for me.
Apr 10, 2018 in Cloud Computing by brat_1
• 7,080 points
22 views

5 answers to this question.

+1 vote

If you want java 8 instantly on your AMI. I doubt that is possible out of box. You will be required to install it once you have an instance

Following posts may help you do so:

link1

link2

answered Apr 10, 2018 by code_ninja
• 6,120 points
+1 vote

Before doing that you need to check the current version of java installed

java -version

install Java 1.8

sudo yum install java-1.8.0

change the Java version

sudo alternatives --config java

Now you can work with Java and you will have a current version of Java installed in your ec2 instance
answered Oct 25, 2018 by nabarupa
+1 vote

To remove java 1.7 and install java 1.8:

sudo yum install java-1.8.0
sudo yum remove java-1.7.0-openjdk
answered Oct 25, 2018 by triedntested
+1 vote

Install Java Runtime 1.8

sudo yum install java-1.8.0

OR if you need a java compiler and other developer tools:

sudo yum install java-1.8.0-openjdk-devel

Then use the alternatives command to make Java 1.8 the default.

sudo /usr/sbin/alternatives --config java
sudo /usr/sbin/alternatives --config javac
# etc

You can remove Java 1.7 with

sudo yum remove java-1.7.0-openjdk

answered Oct 25, 2018 by ristre
+1 vote
This set of command will serve the purpose
yum install java-1.8.0 -y
/usr/sbin/alternatives --set java /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java
/usr/sbin/alternatives --set javac /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/javac
yum remove java-1.7.0-openjdk
answered Oct 25, 2018 by gionete

Related Questions In Cloud Computing

0 votes
1 answer

Can Java Enterprise Edition applications on AWS EC2

It would be good if you start ...READ MORE

answered May 15, 2018 in Cloud Computing by Meci Matt
• 9,400 points
75 views
0 votes
1 answer

Installing R packages in rstudio on EC2

Login to your account and then run ...READ MORE

answered Aug 10, 2018 in Cloud Computing by Priyaj
• 56,160 points

edited Aug 10, 2018 by Priyaj 31 views
+3 votes
3 answers

Is there a way to install apache drill on an EMR cluster on AWS that is already Running?

It looks to be trying to get ...READ MORE

answered Oct 11, 2018 in Cloud Computing by findingbugs
• 4,750 points
243 views
+4 votes
4 answers

AWS S3 cli isn’t working on Windows server

The error message has nothing to do ...READ MORE

answered Aug 20, 2018 in Cloud Computing by Priyaj
• 56,160 points
110 views
+4 votes
2 answers

Running JAR file on Amazon EMR created using Hadoop 2.7.5

I suggest you recompile the code or ...READ MORE

answered Oct 11, 2018 in Cloud Computing by findingbugs
• 4,750 points
199 views
+2 votes
5 answers

Possibility of Querying EC2 tags from within instance

You can use the describe-instances cli call ...READ MORE

answered Oct 25, 2018 in Cloud Computing by nabarupa
38 views
+1 vote
1 answer

Connecting to a DB on another server

It should’nt be a problem. The server ...READ MORE

answered Apr 11, 2018 in Cloud Computing by brat_1
• 7,080 points
25 views
+1 vote
1 answer

Is it possible to get an ec2 pricing programmatically?

Yes absolutely. You may get AWS pricing programmatically ...READ MORE

answered Apr 10, 2018 in Cloud Computing by code_ninja
• 6,120 points
159 views
+1 vote
3 answers

How to upload files on aws elastic beanstalk?

yes once you store it in (AWS) ...READ MORE

answered Sep 3, 2018 in Cloud Computing by bug_seeker
• 15,310 points
685 views