sh -v /wherever/bin/mvn

and see what it's actually running?

On Tue, Jun 28, 2011 at 12:21 PM, Patrick Lind
<[email protected]> wrote:
> Hey guys,
>
> I'm pretty new to Maven and I am attempting to install it on our server
> here.  Here is a quick overview of where I am at:
>
> *$ java -version*
> java version "1.6.0_26"
> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)
>
> *$ type java*
> java is hashed (/usr/java/jdk1.6.0_26/bin/java)
>
> *$ echo $JAVA_HOME/bin*
> /usr/java/jdk1.6.0_26/bin
>
> So as you can see I have updated to the newest version of JDK 1.6.  When I
> try to do mvn --version I get this error :
>
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> org/apache/mav
> en/cli/MavenCli (Unsupported major.minor version 49.0)
>        at java.lang.ClassLoader.defineClass0(Native Method)
>        at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>        at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123
> )
>        at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
>        at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>        at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(Cla
> ssRealm.java:386)
>        at
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(S
> elfFirstStrategy.java:42)
>        at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.
> java:244)
>        at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.
> java:230)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.getMainClass(Launche
> r.java:145)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launc
> her.java:267)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java
> :230)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Lau
> ncher.java:409)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:3
> 52)
>
> Any Ideas?
>
> Thanks
> --
> *Patrick Lind
> Produce Pro Software*
>
> __ <mailto:[email protected]>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to