You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by james pruett <gp...@gmail.com> on 2015/11/04 17:20:25 UTC
Solaris
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
Re: Solaris
Posted by Stephen Connolly <st...@gmail.com>.
FYI: You should be able to unpack the JDK into a user folder only and point
at that
On 4 November 2015 at 20:09, james pruett <gp...@gmail.com> wrote:
> thanks.
> I gave up. I don't have admin rights and I read that installing jdk by just
> unpacking a zip file won't work.
> I just donated to the apache foundation.
> I always tip!
> Jim
>
>
> On Wed, Nov 4, 2015 at 2:01 PM, Karl Heinz Marbaise <kh...@gmx.de>
> wrote:
>
> > Hi James,
> >
> > point JAVA_HOME to ...whatever/jdk1.7.0_79/
> >
> > Kind regards
> > Karl Heinz Marbaise
> >
> > On 11/4/15 8:27 PM, james pruett wrote:
> >
> >> I downloaded jdk1.7 binaries for Sparc 64bit.
> >>
> >> $ find . -name bin
> >> ./jdk1.7.0_79/bin
> >> ./jdk1.7.0_79/jre/bin
> >>
> >> Q: Do I just point JAVA_HOME to one of those?
> >>
> >> Thanks again!
> >> jim
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
Re: Solaris
Posted by james pruett <gp...@gmail.com>.
thanks.
I gave up. I don't have admin rights and I read that installing jdk by just
unpacking a zip file won't work.
I just donated to the apache foundation.
I always tip!
Jim
On Wed, Nov 4, 2015 at 2:01 PM, Karl Heinz Marbaise <kh...@gmx.de>
wrote:
> Hi James,
>
> point JAVA_HOME to ...whatever/jdk1.7.0_79/
>
> Kind regards
> Karl Heinz Marbaise
>
> On 11/4/15 8:27 PM, james pruett wrote:
>
>> I downloaded jdk1.7 binaries for Sparc 64bit.
>>
>> $ find . -name bin
>> ./jdk1.7.0_79/bin
>> ./jdk1.7.0_79/jre/bin
>>
>> Q: Do I just point JAVA_HOME to one of those?
>>
>> Thanks again!
>> jim
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Solaris
Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi James,
point JAVA_HOME to ...whatever/jdk1.7.0_79/
Kind regards
Karl Heinz Marbaise
On 11/4/15 8:27 PM, james pruett wrote:
> I downloaded jdk1.7 binaries for Sparc 64bit.
>
> $ find . -name bin
> ./jdk1.7.0_79/bin
> ./jdk1.7.0_79/jre/bin
>
> Q: Do I just point JAVA_HOME to one of those?
>
> Thanks again!
> jim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Solaris
Posted by james pruett <gp...@gmail.com>.
I downloaded jdk1.7 binaries for Sparc 64bit.
$ find . -name bin
./jdk1.7.0_79/bin
./jdk1.7.0_79/jre/bin
Q: Do I just point JAVA_HOME to one of those?
Thanks again!
jim
Re: Solaris
Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi,
Maven 3.3.X needs Java 1.7 ...
will not help...
You need to stuck with Maven 3.2.5 ...or you need to install Java 7 and
may be you need to configure toolchain...
Kind regards
Karl Heinz Marbaise
On 11/4/15 8:12 PM, james pruett wrote:
> This is all I can figure out as to what pieces of java my box has...
> Thanks for helping!
>
>
> $/usr/bin/javac -version
> javac 1.6.0_91
>
> $ /usr/bin/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)
>
> $ ls -las java*
> 1 lrwxrwxrwx 1 root other 16 Mar 12 2015 java ->
> ../java/bin/java
> 1 lrwxrwxrwx 1 root other 17 Mar 12 2015 javac ->
> ../java/bin/javac
> 1 lrwxrwxrwx 1 root other 19 Mar 12 2015 javadoc ->
> ../java/bin/javadoc
> 1 lrwxrwxrwx 1 root other 17 Mar 12 2015 javah ->
> ../java/bin/javah
> 1 lrwxrwxrwx 1 root other 17 Mar 12 2015 javap ->
> ../java/bin/javap
> 1 lrwxrwxrwx 1 root other 18 Mar 12 2015 javaws ->
> ../java/bin/javaws
>
> $ pwd
> /usr/java/jre/bin
>
> $ ls
> ControlPanel java_vm jcontrol orbd policytool
> rmiregistry sparcv9 unpack200
> java javaws keytool pack200 rmid
> servertool tnameserv
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Solaris
Posted by james pruett <gp...@gmail.com>.
This is all I can figure out as to what pieces of java my box has...
Thanks for helping!
$/usr/bin/javac -version
javac 1.6.0_91
$ /usr/bin/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)
$ ls -las java*
1 lrwxrwxrwx 1 root other 16 Mar 12 2015 java ->
../java/bin/java
1 lrwxrwxrwx 1 root other 17 Mar 12 2015 javac ->
../java/bin/javac
1 lrwxrwxrwx 1 root other 19 Mar 12 2015 javadoc ->
../java/bin/javadoc
1 lrwxrwxrwx 1 root other 17 Mar 12 2015 javah ->
../java/bin/javah
1 lrwxrwxrwx 1 root other 17 Mar 12 2015 javap ->
../java/bin/javap
1 lrwxrwxrwx 1 root other 18 Mar 12 2015 javaws ->
../java/bin/javaws
$ pwd
/usr/java/jre/bin
$ ls
ControlPanel java_vm jcontrol orbd policytool
rmiregistry sparcv9 unpack200
java javaws keytool pack200 rmid
servertool tnameserv
Re: Solaris
Posted by Karl Heinz Marbaise <kh...@gmx.de>.
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 <an...@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 <da...@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 <gp...@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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Solaris
Posted by james pruett <gp...@gmail.com>.
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
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 <an...@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 <da...@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 <gp...@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
> > >
> >
>
Re: Solaris
Posted by Andrew Todd <an...@gmail.com>.
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 <da...@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 <gp...@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
> >
>
Re: Solaris
Posted by Dan Tran <da...@gmail.com>.
you may want to link your /bin/sh to bash
-D
On Wed, Nov 4, 2015 at 8:20 AM, james pruett <gp...@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
>
Re: Solaris
Posted by james pruett <gp...@gmail.com>.
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-------------
Re: Solaris
Posted by Jochen Wiedmann <jo...@gmail.com>.
The first line of mvn is
#!/bin/sh
So, that should be a bourne shell, and not tcsh, regardless of the
users settings.
Jochen
On Wed, Nov 4, 2015 at 5:27 PM, Jeff MAURY <je...@jeffmaury.com> wrote:
> Not sure the Maven scripts supports tcsh. Switch to bash if you can.
>
> Regards
> Jeff
>
> On Wed, Nov 4, 2015 at 5:20 PM, james pruett <gp...@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
>>
>
>
>
> --
> Jeff MAURY
>
>
> "Legacy code" often differs from its suggested alternative by actually
> working and scaling.
> - Bjarne Stroustrup
>
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
> http://www.twitter.com/jeffmaury
--
The next time you hear: "Don't reinvent the wheel!"
http://www.keystonedevelopment.co.uk/wp-content/uploads/2014/10/evolution-of-the-wheel-300x85.jpg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Solaris
Posted by Jeff MAURY <je...@jeffmaury.com>.
Not sure the Maven scripts supports tcsh. Switch to bash if you can.
Regards
Jeff
On Wed, Nov 4, 2015 at 5:20 PM, james pruett <gp...@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
>
--
Jeff MAURY
"Legacy code" often differs from its suggested alternative by actually
working and scaling.
- Bjarne Stroustrup
http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury