ec2-api-tools commands require JAVA_HOME to be set

Bug #410328 reported by Scott Moser
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ec2-api-tools (Ubuntu)
Fix Released
Undecided
Scott Moser

Bug Description

ec2 commands require that you set JAVA_HOME to find java.
Instead this just invoke 'java' from the path.
example:
$ ec2-describe-images -o self -o amazon
/usr/bin/ec2-cmd: line 17: JAVA_HOME: JAVA_HOME is not set

The issue is in /usr/bin/ec2-cmd, where its final lines do:

CMD=$1
shift
"$JAVA_HOME/bin/java" $EC2_JVM_ARGS $cygprop -classpath "$CP" com.amazon.aes.webservices.client.cmd.$CMD "$@"

Scott Moser (smoser)
Changed in ec2-api-tools (Ubuntu):
status: New → Confirmed
Scott Moser (smoser)
Changed in ec2-api-tools (Ubuntu):
assignee: nobody → Scott Moser (smoser)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ec2-api-tools - 1.3.36506-0ubuntu4

---------------
ec2-api-tools (1.3.36506-0ubuntu4) karmic; urgency=low

  * ec2-cmd: remove need for setting JAVA_HOME (LP: #410328)

 -- Scott Moser <email address hidden> Wed, 12 Aug 2009 16:20:54 -0400

Changed in ec2-api-tools (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
jberryman (brandon-m-simmons) wrote :

Will this be fixed in Jaunty or will that package remain broken?

Revision history for this message
Scott Moser (smoser) wrote :

On Wed, 28 Oct 2009, jberryman wrote:

> Will this be fixed in Jaunty or will that package remain broken?

With such an easy workaround (export JAVA_HOME=/usr), this bug doesn't
really fit the criteria for Stable Release Updates
(https://wiki.ubuntu.com/StableReleaseUpdates).

So, yes, it will likely remain broken in jaunty.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.