It can be seen that you have JDK installed, but are you sure that JDK's
bin directory is included in
$PATH? Do a quick check with
java is also present in JRE's directory(
/usr/lib/jvm/jdk1.7.0_04/jre/bin/) it'll show up but it cannot package new jar files. You'll be needing
jar utility for that task, as in here.
jar only comes in JDK's directory, so you need to include JDK's directory i.e.
$PATH. To do that add the following line to
then logout and retry.