Romeo, Thank you for getting back to me. I found the problem. First,
Something in the /usr/sadm/lib/smc/lib/functions is not working properly with finding the java version and setting JAVA_HOME. This has already been set as a variable. I commented out a section of code that does this and smc starts right up. I suppose this bit of code is helpful if the variable does not get set. I tried the statement you mentioned as well as another with the code in functions as original(not luck): rm /usr/bin/java ln -s /usr/java/jdk1.6.0_12/bin/java /usr/bin/java fails rm /usr/bin/java ln -s /usr/jdk/instances/jdk1.6.0/bin/java /usr/bin/java fails I have not looked at the bit of code that unsets JAVA_HOME and resets it. But the problem may be here? When I upgraded the JDK I had to relink. Maybe the problem is here? /usr/jdk ls -ltr total 12 lrwxrwxrwx 1 root other 7 Mar 16 13:12 j2sdk1.4.2_18 -> ../j2se drwxr-xr-x 8 root bin 512 Mar 16 13:21 packages lrwxrwxrwx 1 root other 18 Mar 16 14:32 jdk1.5.0_17 -> instances/jdk1.5.0 drwxr-xr-x 17 root bin 1024 Mar 18 10:49 instances lrwxrwxrwx 1 root other 18 Mar 18 10:49 jdk1.6.0_12 -> instances/jdk1.6.0 lrwxrwxrwx 1 root other 11 Mar 18 10:49 latest -> jdk1.6.0_12 David On Thu, Mar 19, 2009 at 1:03 PM, Romeo Ninov <[email protected]> wrote: > Try this: > rm /usr/bin/java > ln -s /usr/java/jdk1.6.0_12/bin/java /usr/bin/java > > <><><><><><><><><><><><><><><><><><><><><> > Regards: Romeo Ninov > http://www.ninov.info > Freedom, Sancho..... > <><><><><><><><><><><><><><><><><><><><><> > > > -----Original Message----- > From: [email protected] [mailto: > [email protected]] On Behalf Of David Hamilton > Sent: Thursday, March 19, 2009 6:00 PM > To: Solaris-Users mailing list > Subject: Re: [Solaris-Users] Fresh Solaris 10 x86 Install SMC > > # ls -l /usr/bin/java > lrwxrwxrwx 1 root other 16 Mar 16 13:12 /usr/bin/java -> > ../java/bin/java > > On Thu, Mar 19, 2009 at 11:30 AM, Romeo Ninov <[email protected]> wrote: > > > What is result of > > ls -l /usr/bin/java > > > > On Thu, Mar 19, 2009 at 5:26 PM, David Hamilton <[email protected]> > wrote: > > > Jozef, > > > > > > # which java > > > /usr/bin/java > > > # echo $PATH > > > /usr/sbin:/usr/bin:/usr/openwin/bin:/usr/ucb:/usr/bin/java > > > > > > ./smc & > > > 1856 > > > # No suitable Java runtime found in any of the following directories: > > > /usr/java /usr/java /usr > > > Please set the JAVA_HOME environment variable to point to a Java 2 > > > installation and run /usr/sadm/lib/smc/bin/smc again. > > > > > > Thanks very much, > > > > > > David > > > > > > On Thu, Mar 19, 2009 at 10:56 AM, Jozef Babjak <[email protected] > > >wrote: > > > > > >> What is your PATH and what 'which java' says? > > >> > > >> J. > > >> > > >> > > >> On Thu, Mar 19, 2009 at 15:28, David Hamilton <[email protected]> > > wrote: > > >> > Hello All, > > >> > > > >> > > > >> > Recently a Solaris 10 x86 server was built. When I try to start smc > I > > >> > receive the following error. > > >> > > > >> > # No suitable Java runtime found in any of the following > directories: > > >> > /usr/java /usr/java /usr > > >> > Please set the JAVA_HOME environment variable to point to a Java 2 > > >> > installation and run /usr/sadm/lib/smc/bin/smc again. > > >> > > > >> > I reinstalled java. > > >> > > > >> > # java -version > > >> > java version "1.6.0_12" > > >> > Java(TM) SE Runtime Environment (build 1.6.0_12-b04) > > >> > Java HotSpot(TM) Server VM (build 11.2-b01, mixed mode) > > >> > > > >> > Additionally: > > >> > > > >> > lrwxrwxrwx 1 root other 7 Mar 16 13:12 j2sdk1.4.2_18 > -> > > >> > ../j2se > > >> > drwxr-xr-x 8 root bin 512 Mar 16 13:21 packages > > >> > lrwxrwxrwx 1 root other 18 Mar 16 14:32 jdk1.5.0_17 -> > > >> > instances/jdk1.5.0 > > >> > drwxr-xr-x 17 root bin 1024 Mar 18 10:49 instances > > >> > lrwxrwxrwx 1 root other 18 Mar 18 10:49 jdk1.6.0_12 -> > > >> > instances/jdk1.6.0 > > >> > lrwxrwxrwx 1 root other 11 Mar 18 10:49 latest -> > > >> jdk1.6.0_12 > > >> > > > >> > Any thoughts on this? > > >> > > > >> > Thanks, > > >> > David > > >> > _______________________________________________ > > >> > Solaris-Users mailing list > > >> > [email protected] > > >> > http://www.filibeto.org/mailman/listinfo/solaris-users > > >> > > > >> _______________________________________________ > > >> Solaris-Users mailing list > > >> [email protected] > > >> http://www.filibeto.org/mailman/listinfo/solaris-users > > >> > > > _______________________________________________ > > > Solaris-Users mailing list > > > [email protected] > > > http://www.filibeto.org/mailman/listinfo/solaris-users > > > > > > > > > > > -- > > <><><><><><><><><><><><><><><><><><> > > Regards: Romeo Ninov > > http://www.ninov.info > > <><><><><><><><><><><><><><><><><><> > > _______________________________________________ > > Solaris-Users mailing list > > [email protected] > > http://www.filibeto.org/mailman/listinfo/solaris-users > > > _______________________________________________ > Solaris-Users mailing list > [email protected] > http://www.filibeto.org/mailman/listinfo/solaris-users > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.238 / Virus Database: 270.11.13/2000 - Release Date: 03/18/09 > 07:17:00 > > _______________________________________________ > Solaris-Users mailing list > [email protected] > http://www.filibeto.org/mailman/listinfo/solaris-users > _______________________________________________ Solaris-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/solaris-users
