I'm using Java jdk with Maven and I have the following /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" # Maven Settings export JAVA_HOME=/usr/local/jdk1.6.25/ export M2_HOME=/usr/local/apache-maven/apache-maven-3.0.3 export M2=$M2_HOME/bin export PATH=$M2:$PATH
The /usr/local/jdk1.6.25 does exist, but when I run mvn -version I get...
Warning: JAVA_HOME environment variable is not set. Apache Maven 3.0.3 (r1075438; 2011-02-28 17:31:09+0000) Maven home: /usr/local/apache-maven/apache-maven-3.0.3 Java version: 1.6.0_23, vendor: Sun Microsystems Inc. Java home: /usr/lib/jvm/java-6-openjdk/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.0.0-14-generic", arch: "i386", family: "unix"
does anyone know why this does not think my java_home directory is correct even though it exists in my environment file?