On Mon, 2002-11-18 at 09:02, Jordan Thompson wrote: > now you'd think this was easy.... and I'm sure it is once you know how.... > ;-) > > I want to do a setenv (which does not exist in bash.) I am using ant which > expects JAVA_HOME to be set to wherever your jre is. I tried: > set JAVA_HOME=yadayada > when I do this, and then do a set | grep HOME, I get: > _=JAVA_HOME=yahdyada > > I'd like to put this into my .bash_profile when I am done. > > I had to change my shell to tcsh, do a setenv JAVA_HOME yadayada and use ant > from tcsh - there must be an easier way! > > thanks, > Jordan >
You can edit the /etc/profile file - this affects all users, all shells. Add in there the following: --------------------------- JAVA_HOME='/yadayadayada' export JAVA_HOME --------------------------- Das ist alles! -- Mon Nov 18 09:10:00 EST 2002 -------------------------------- | __ __ | | / \ /| |'-. | | .\__/ || | | | | _ / `._ \|_|_.-' | | | / \__.`=._) (_ |kuhn media australia | |/ ._/ |"""""""""| |http://kma.0catch.com | |'. `\ | | |stephen kuhn | ;"""/ / | | |email: [EMAIL PROTECTED] | smk ) /_/| |.-------.| |mobile: 0410-728-389 | ' `-`' " " |linux user:267497 -------------------------------- "If once a man indulges himself in murder, very soon he comes to think little of robbing; and from robbing he next comes to drinking and Sabbath-breaking, and from that to incivility and procrastination." -- Thomas De Quincey (1785 - 1859)
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com