I am using java 1.6: here's the output you wanted:
[EMAIL PROTECTED] ~]$ java -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_02-b05, mixed mode)
[EMAIL PROTECTED] ~]$ which java
/usr/bin/java
[EMAIL PROTECTED] ~]$ ll `which java`
lrwxrwxrwx 1 root root 17 2007-09-03 20:55 /usr/bin/java ->
/opt/jdk/bin/java
[EMAIL PROTECTED] ~]$ env | grep JAVA_HOME
JAVA_HOME=/opt/jdk
[EMAIL PROTECTED] ~]$
Brice Lambi wrote:
Could you send the output of the following commands:
java -version
which java
env | grep JAVA_HOME
It looks like you might be using the wrong version of jdk. If you didn't
take steps to setup a usable jvm then maven is probably trying to use the
gnu jvm which will not work. Try downloading the sun jdk 1.5+ and setting
JAVA_HOME to point to it. Maven uses JAVA_HOME to find the java compiler
and virtual machine.
Brice
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]