I think Curtis has the right answer. And when you set JAVA_HOME, it should be pointing to the JDK, not the JRE installation - looks like that will be /export/home/e0857723/aaa_bonita/jdk17/jdk1.7.0_79 for you.
Is it possible to have the admins upgrade the box to JDK7? Solaris has some strange indirection going on to make ‘java’ a basic command line task, (/usr/bin/java is a link to /usr//java/bin/java, which is a link to /usr/jdk/latest, etc) so you’ll be fighting the OS if you try to run a different version (although I think it should be do-able). Cheers, Greg Trasuk > On Nov 6, 2015, at 1:34 PM, Curtis Rueden <ctrue...@wisc.edu> wrote: > > 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 <gpscru...@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 <tras...@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 <gpscru...@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-unsubscr...@maven.apache.org >>> For additional commands, e-mail: users-h...@maven.apache.org >>> >>> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org