Setting up java for ec2-api-tools on Fedora Linux

Download the Linux or Linux 64 package (not the RPM) from Oracle at

As root:

mkdir /usr/java

since it probably does not exist by default.

Extract the jre-7u21-linux.tar.gz file you downloaded into /usr/java

cd /usr/java && tar xzf jre-7u21-linux.tar.gz

You will have something like:


So in your .bashrc file (or however you set up your environmental variables for EC2) add:

export JAVA_HOME=/usr/java/jre1.7.0_21/


Leave a Reply

Your email address will not be published. Required fields are marked *

To see if you are a human *