This file will globally change your settings, including the JAVA_HOME
On 01 Apr 2004, at 05:12, Marc Driftmeyer wrote:
As most have discovered by now BASH has a .bashrc file.Met vriendelijke groeten,
What OS X does not include, by default, is a .profile.
-----------------------------------------------------------------------
As in my case with Debian Linux:
Here is my .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
export PS1='<[EMAIL PROTECTED]:\w>'
umask 022
# You may uncomment the following lines if you want `ls' to be
colorized:
#export LS_OPTIONS='--color=auto'
# eval `dircolors`
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
eval `dircolors -b`
alias ls='ls --color=auto'
alias dir='ls --color=auto --format=vertical'
alias vdir='ls --color=auto --format=long'
fi
#
# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
#GNUStep initiation for Tools and Root Preferences
. /usr/lib/GNUstep/System/Makefiles/GNUstep.sh
/usr/lib/GNUstep/System/Tools/gdnc
# /usr/lib/GNUstep/System/Tools/gpbs
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/lib/:/usr/lib:/usr/lib/kde3"
Not a whole lot of JAVA_HOME stuff right?
Here is my .profile that is referenced with BASH
# ~/.profile: executed by Bourne-compatible login shells.
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# QT 3.2.3 Compiled Classes and Frameworks
#QTDIR=/usr/local/qt
#MANPATH=$QTDIR/doc/man:$MANPATH
#LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
# GNUStep Root Paths
GNUSTEP_SYSTEM_ROOT=/usr/lib/GNUstep/System
GNUSTEP_LOCAL_ROOT=/usr/local/lib/GNUstep/Local
GNUSTEP_NETWORK_ROOT=/usr/local/lib/GNUstep/Network
#PStill
PSTILL_PATH=/usr/local/bin/pstill_dist
#Forrest CVS Configuration Variables
FORREST_HOME=/usr/local/SunJava/xml-forrest/build/dist/shbat/bin
#System Path Concatenated Listing
PATH=/usr/local/bin:/etc/alternatives:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
#Java SDK 1.4.2 SDK Path Settings
JAVA_HOME=/usr/local/SunJava/j2sdk1.4.2/
#Apache Jakarta Tomcat Settings
CATALINA_HOME=/usr/share/tomcat4/
BASEDIR=/usr/share/tomcat4/
#System Classpath Settings
CLASSPATH=.:$JAVA_HOME/lib/:$JAVA_HOME/jre/lib:/lib:/usr/lib:/usr/local/pgsql/lib/:/usr/local/pgsql/include:/usr/lib/kde3
#System Export Pathways
#export QTDIR PATH MANPATH LD_LIBRARY_PATH JAVA_HOME CLASSPATH
CATALINA_HOME BASEDIR
export PATH JAVA_HOME FORREST_HOME PSTILL_PATH CLASSPATH CATALINA_HOME
GNUSTEP_SYSTEM_ROOT GNUSTEP_LOCAL_ROOT GNUSTEP_NETWORK_ROOT BASEDIR
mesg n
-----------------------------------------------------------------------
OS X Specific
If you create a JAVA_HOME within your newly created .profile and
include:
# ~/.profile: executed by Bourne-compatible login shells.
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
#Java SDK 1.4.2 SDK Path Settings
JAVA_HOME=/usr
#System Path Concatenated Listing
PATH=/usr/local/bin:/etc/alternatives:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
export PATH JAVA_HOME
I bet you'll have better luck with Cocoon.
-Marc
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Bien � vous,
Kind regards,
Yves Vindevogel
Implements
Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91
Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
Markt 18c - 9700 Oudenaarde - Tel: +32 (55) 30 55 76
Web: http://www.implements.be
<x-tad-smaller>
First they ignore you. Then they laugh at you. Then they fight you. Then you win.
Mahatma Ghandi.</x-tad-smaller>
