maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curtis Rueden <ctrue...@wisc.edu>
Subject Re: Installing on Solaris
Date Fri, 06 Nov 2015 18:34:23 GMT
Hi James,

Probably you meant to set JAVA_HOME, not CLASSPATH.

The JAVA_HOME variable points to your Java installation, whereas CLASSPATH
points to .jar files (and/or directories of .class files) you want to be
available to Java after it starts up.

Regards,
Curtis

On Fri, Nov 6, 2015 at 12:24 PM, james pruett <gpscruise@gmail.com> wrote:

> Greg, thanks for that.
> Yes, I downloaded SE Solaris Sparc 64bit version from where you
> mentioned...
> Note I am not admin but I read that it should still be possible for me to
> run java from userspace.
>
> Q: I set my CLASSPATH, but perhaps incorrectly....
>
> % env | grep CLASSPATH
>
> CLASSPATH=/export/home/e0857723/aaa_bonita/jdk17/jdk1.7.0_79/jre/lib/sparcv9
>
> % ls $CLASSPATH
> jspawnhelper         libdcpr.so           libj2gss.so          libjava.so
>         libjdgaSUNWffb.so    libjsdt.so           libmlib_image.so
> libsaproc.so         libt2k.so            server
>
>
> mktpricing:/export/home/e0857723/aaa_bonita % javac -version
> Error: could not find libjava.so
> Error: Could not find Java SE Runtime Environment.
>
>
>
> mktpricing:/export/home/e0857723/aaa_bonita % which javac
> /export/home/e0857723/aaa_bonita/jdk17/jdk1.7.0_79/bin/javac
>
>
> I realize this is not a maven problem I am having but I am begging help
> help.
> I can go to Solaris help if you think necessary.
>
> Thanks for helping!
> jim
>
>
>
>
> On Fri, Nov 6, 2015 at 11:50 AM, Greg Trasuk <trasukg@stratuscom.com>
> wrote:
>
> >
> > Hi James:
> >
> > Based on your class path, it looks like you installed the “Java Runtime
> > Environment”.  That’s just the Java virtual machine without the Java
> > Compiler.  Maven is going to need the Java Compiler, so you’ll need to
> get
> > the Java SE version (Standard Edition, appears to be at
> >
> http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
> > ).
> >
> > Having said that, it looks odd that it’s having trouble finding
> > ‘libjava.so’.  There might be something funny about your JDK
> installation.
> > Maybe that gives you a place to start looking…
> >
> > Basically, before Maven has any chance at working, you need to make sure
> > that you can run ‘javac -version’ and it comes back with 1.7 or higher.
> >
> > Cheers,
> >
> > Greg Trasuk
> > http://www.webagesolutions.com
> >
> >
> > > On Nov 6, 2015, at 12:36 PM, james pruett <gpscruise@gmail.com> wrote:
> > >
> > > Hi,
> > >
> > > I get this error. Any help appreciated.
> > >
> > >
> > > % mvn
> > > Error: could not find libjava.so
> > > Error: Could not find Java SE Runtime Environment.
> > >
> > > % env | grep -i CLASSPATH
> > >
> >
> CLASSPATH=/export/home/e0857723/aaa_bonita/jdk17/jdk1.7.0_79/jre/lib/sparcv9
> > >
> > >
> > > % ls -las $CLASSPATH/libjava.so
> > > 524 -rwxrwxrwx   1    267912 Apr 10  2015
> > >
> >
> /export/home/e0857723/aaa_bonita/jdk17/jdk1.7.0_79/jre/lib/sparcv9/libjava.so
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message