Re: /etc/profile and gdm/xdm

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Mark Phillips
Date:  
To: plug-discuss
Subject: Re: /etc/profile and gdm/xdm
Jeremy,

Here is my /etc/profile

latitude610:/home/mark# cat /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"

if [ "$PS1" ]; then
  if [ "$BASH" ]; then
    PS1='\u@\h:\w\$ '
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi


# Added after installation
JAVA_HOME="/usr/local/lib/jdk"
JDK_HOME="${JAVA_HOME}"
NETBEANS_HOME="/usr/local/lib/netbeans"
HSQLDB_HOME="/usr/local/lib/hsqldb"
PATH="${JAVA_HOME}/bin:${NETBEANS_HOME}/bin:${PATH}"

export PATH JAVA_HOME JDK_HOME NETBEANS_HOME HSQLDB_HOME
# End of additions
umask 022
latitude610:/home/mark#

This is my ~/.xsession file

latitude610:/home/mark# cat .xsession
#!/bin/sh -f
. /etc/profile
latitude610:/home/mark#

latitude610:/home/mark# ls -al .xsession
-rwxr-xr-x 1 mark mark 43 Dec 20 10:33 .xsession
latitude610:/home/mark#

After booting up, when I open a terminal window and type echo $JAVA_HOME
the variable is not set. If I then type . /etc/profile then echo
$JAVA_HOME I get the correct information (/usr/local/lib/jdk).

Why aren't the values set when I boot up? What am I doing wrong?

Thanks,

Mark
Jeremy C. Reed wrote:

>On Sun, 19 Dec 2004, Mark Phillips wrote:
>
>
>
>>mark@latitude610:~$ echo $JAVA_HOME
>>
>>mark@latitude610:~$
>>
>>
>
>How do you define JAVA_HOME? And is it exported to the environment?
>
> Jeremy C. Reed
>
>                 technical support & remote administration
>                http://www.pugetsoundtechnology.com/

>
>---------------------------------------------------
>PLUG-discuss mailing list -
>To subscribe, unsubscribe, or to change you mail settings:
>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
>