On Monday 11 November 2002 13:12, Damon Register wrote:
Togan Muftuoglu wrote:
You have to do all the steps in the same terminal othrwise it won't work
but I did it in the same terminal and got the previously mentioned results. In the same terminal I did source setJava IBMJava2 then I typed env | grep java and just got another prompt. The return was empty. I get the feeling that there is more involved or this doesn't work in all cases.
If/when you add this subject to your FAQ, please be sure to include all steps and dependencies. In other words, if step includes something like change symbolic link, don't just say "change link", write something like "open console, type command...". Even though I have been tinkering with Linux since 1999, I still feel like a beginner. I don't know to translate some generalities to specific commands.
Do I perhaps have to tamper with some configuration file somewhere to define environment variables? Where are the current variables such as JAVA_HOME defined?
Damon Register
Well in a stock 8.1 install, the answer seems to be /etc/profile.d/alljava.sh if you are using a Bourne-derived shell. Unless there is a big difference between 8.1 and 8.0, that's where I'd look for environment variables such as JAVA_HOME being set for users accepting the default. Someone please put me right if this assumption is up the creek - the way the script works would suggest to me that the variables should stay the same, and the symlinks pointed to the right place so that the shell always finds the java implementation at the right place. I haven't got the entire thread in front of me, so apologies if the last sentence isn't relevant to what you're trying to achieve. Best Fergus -- Fergus Wilde Chetham's Library Long Millgate Manchester M3 1SB Tel: +44 161 834 7961 Fax: +44 161 839 5797 http://www.chethams.org.uk