Hi Peter,

Thanks for the suggestions.  I put it in .bash_profile and .profile.
One of them worked, not sure which but it doesn't matter, I'm all set
now.

Appreciate your help.

Regards,
Andrew.

On 22/12/2007, Peter Schow <[EMAIL PROTECTED]> wrote:
> Hi Andrew,
>
> On Fri, Dec 21, 2007 at 04:01:33PM -0800, Andrew Myers wrote:
> > Hi All,
> >
> > I'm trying to install tomcat on opensolaris (b78) but I can't find where to 
> > set the JAVA_HOME variable.
> >
> > I've tried:
> >
> > .profile
> > local.profile
> > /etc/default/login
> >
> > and none of them seem to take effect.
> >
> > Any suggestions?
>
> Try:
>
>   /etc/profile
>
> if you're looking to have JAVA_HOME defined for all users of your
> system.
>
> However, if you're running tomcat only under a single user,
> perhaps "tomcat", you may not want to define it globally.  If tomcat's
> shell is ksh, you would modify .profile in its home directory,
> something like:
>
>    export JAVA_HOME=/usr/jdk1.6
>
>
> or for bash, the .bashrc (non-login shell) and .bash_profile (login shell)
> are used.
>
>
_______________________________________________
opensolaris-help mailing list
[email protected]

Reply via email to