Hi,

On 11/4/15 7:55 PM, james pruett wrote:
Hi again,

I am trying to use maven from Solaris and get this error.
Thanks for helping.
-jim


  $ ../../maven/apache-maven-3.3.3/bin/mvn clearn install -f pom.xml -N
Exception in thread "main" java.lang.UnsupportedClassVersionError:
org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0

That looks you are using not Java 1.7+ JDK....

Kind regards
Karl Heinz Marbaise
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
         at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:401)
         at
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
         at
org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
         at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:254)
         at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
         at
org.codehaus.plexus.classworlds.launcher.Launcher.getMainClass(Launcher.java:144)
         at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:266)
         at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
         at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
         at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)


On Wed, Nov 4, 2015 at 11:00 AM, Andrew Todd <andrew.todd...@gmail.com>
wrote:

See https://issues.apache.org/jira/browse/MNG-5852

This has happened in several releases -- Maven developers need to switch
their hashbang to #!/usr/bin/env bash or otherwise actually test against a
Bourne shell.

On Wed, Nov 4, 2015 at 11:29 AM, Dan Tran <dant...@gmail.com> wrote:

you may want to link your /bin/sh to bash

-D

On Wed, Nov 4, 2015 at 8:20 AM, james pruett <gpscru...@gmail.com>
wrote:

Hi,

I am compiling maven on Solaris.   apache-maven-3.3-3.bin.tar.gz

My environment is:

echo $0
tcsh


I get this error

/apache-maven-3.3.3/bin % ./mvn
./mvn: syntax error at line 200: `(' unexpected


line 200 says: local basedir=($pwd)



Any help appreciated!
Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to