añadir

sudo echo 'JAVA_HOME=/usr/lib/jvm/java-6-sun' >> /etc/environment

Responder