I am installing maven on Solaris. (I am not confident of what shell I am in......) Anything I can think of is listed below. Thanks for helping!
% echo $0 tcsh % env | grep SHELL SHELL=/bin/bash % set | grep -i shell shell /usr/bin/tcsh % env | grep JAVA JAVA_HOME=/usr % set | grep JAVA JAVA_HOME /export/home/e0857723/aaa_bonita/jdk17/jdk1.7.0_79 _ env | grep JAVA % java -version java version "1.6.0_91" Java(TM) SE Runtime Environment (build 1.6.0_91-b13) Java HotSpot(TM) Server VM (build 20.91-b07, mixed mode) % javac -version javac 1.6.0_91 % set | grep JRE JRE_HOME /export/home/e0857723/aaa_bonita/jdk17/jdk1.7.0_79/jre % ./mvn -v Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0 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) I edited the first line of mvn file to be this: #!/bin/bash My jre path had the word sparcv9 in it so I renamed bin and made a link as follows %ls -las total 0 0 drwxr-xr-x 4 96 Nov 6 10:32 . 0 drwxr-xr-x 5 96 Apr 10 2015 .. 0 lrwxrwxrwx 1 14 Nov 6 10:32 bin -> ./binn/sparcv9 0 drwxr-xr-x 3 96 Apr 10 2015 binn 0 drwxr-xr-x 3 96 Apr 10 2015 lib --------end-------------