Para definir Java_Home
1) cd / usr / lib / jvm
2) ls -l
verifique qual java
3) java-6-openjdk-amd64 (ou)
java-7-openjdk-amd64
4) vi / etc / environment
cole se java-6-openjdk-amd64
JAVA_HOME="/ usr / lib / jvm / java-6-openjdk-amd64"
cole se java-7-openjdk-amd6
JAVA_HOME="/ usr / lib / jvm / java-7-openjdk-amd64" salve