Link to home
Start Free TrialLog in
Avatar of Anthony Horner
Anthony Horner

asked on

how to install java on RHEL image on EC2

I've installed the RHEL image on the free tier of EC2 on Amazon Web Services.

I've downloaded the jdk as a tar.gz and uploaded it onto the image.

I thought that to install it, would require me just un-tarring the file with something like :

tar -xf jdk-8u121-linux-x64.tar.gz

Which unpacked the archive fine but I thought it would set the environment variables but it hasn't.

What should else should I be doing? I tried this but I'm not sure if this would apply to the EC2 image.  either way when I tried it, it didn't come back with anything.

Any suggestions to finish installing java?

TIA
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Anthony Horner
Anthony Horner

ASKER

Is there a link for doing that?
RHEL is a commercially supported product isn't it?
Yeah, guess you have a point there