Hi Frederic, fredand44 wrote:
> Hello! > > I have just reinstalled my computer to Ubuntu. > I have also installed maven 3.0.3.. > > I set JAVA_HOME in my .bashrc like: > > JAVA_HOME=/usr/lib/jvm/java-6-openjdk > export JAVA_HOME > > If I print it out with printenv I get: > JAVA_HOME=/usr/lib/jvm/java-6-openjdk > > But If I run mvn --version I get: > > mvn --version > Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100) > Maven home: /home/fredrik/Applications/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" > > > As you can see it points to the JRE, and I guess that is not right. This is normal. > (I got the same when I did not set any JAVA_HOME also) > > What do you think guys? Don't set JAVA_HOME yourself. I don't know Ubuntu, but I guess it sets this variable on its own as other Linux systems (as mine) do anyway. - Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
