Has anyone found the reason that programs like Mozilla and OpenOffice will not find java? I have even correctly typed in the correct path to every. I have loaded from the CDs /usr/lib/IBMJava2-1.3.0/*, an /usr/lib/SunJava1-1.1.8d/*. Ifind variable set ~> env | grep java JAVA_BINDIR=/usr/lib/java/bin JAVA_HOME=/usr/lib/java JDK_HOME=/usr/lib/java JRE_HOME=/usr/lib/java And /usr/lib/java/bin is good And /usr/lib/java = lrwxrwxrwx - /usr/lib/java -> SunJava1-1.1.8/ /usr/lib/SunJava1-1.1.8/lib looks correct. All i[345]86 are linked to i686 I am updating RPM and it is complaining about "java not found" I am not finding a path to /usr/lib/SunJava1-1.1.8/bin/* or /usr/lib/IBMJava2-1.3.0/bin/* -- 73 de Donn Washburn __ " http://www.hal-pc.org/~dwash " Ham Callsign N5XWB / / __ __ __ __ __ __ __ 307 Savoy St. / /__ / / / \/ / / /_/ / \ \/ / Sugar Land, TX 77478 /_____/ /_/ /_/\__/ /_____/ /_/\_\ LL# 1.281.242.3256 a MSDOS Virus "Free Zone" OS Email: n5xwb@arrl.net Info: http://www.austinlug.org
* Donn aka N5XWB;
Has anyone found the reason that programs like Mozilla and OpenOffice will not find java? I have even correctly typed in the correct path to every.
I have loaded from the CDs /usr/lib/IBMJava2-1.3.0/*, an /usr/lib/SunJava1-1.1.8d/*.
Ifind variable set ~> env | grep java JAVA_BINDIR=/usr/lib/java/bin JAVA_HOME=/usr/lib/java JDK_HOME=/usr/lib/java JRE_HOME=/usr/lib/java
Open a terminal (console, Xterm whatever) 1) source setJava IBMJava2 This will make sure you have your JAVA_HOME set to the bin where IBMJava is located. 2) continue installing from this terminal ( If you open another terminal it won't work as the above command sets the Java environment just for that terminal -- Togan Muftuoglu Unofficial SuSE FAQ Maintainer http://dinamizm.ath.cx
Togan Muftuoglu wrote:
* Donn aka N5XWB;
on 09 Nov, 2002 wrote: Has anyone found the reason that programs like Mozilla and OpenOffice will not find java? I have even correctly typed in the correct path to every.
Open a terminal (console, Xterm whatever)
1) source setJava IBMJava2
This will make sure you have your JAVA_HOME set to the bin where IBMJava is located.
Thanks! Another good reason to be on this list. "source setJava IBMJava2" - a new command to use. I have alway done it manually after upgrading from source. However, I don't play with java, I do leave somethings to the installer on the SuSE CD. -- 73 de Donn Washburn __ " http://www.hal-pc.org/~dwash " Ham Callsign N5XWB / / __ __ __ __ __ __ __ 307 Savoy St. / /__ / / / \/ / / /_/ / \ \/ / Sugar Land, TX 77478 /_____/ /_/ /_/\__/ /_____/ /_/\_\ LL# 1.281.242.3256 a MSDOS Virus "Free Zone" OS Email: n5xwb@arrl.net Info: http://www.austinlug.org
Togan Muftuoglu wrote:
Open a terminal (console, Xterm whatever)
1) source setJava IBMJava2 This will make sure you have your JAVA_HOME set to the bin where IBMJava is located.
2) continue installing from this terminal ( If you open another terminal it won't work as the above command sets the Java environment just for that terminal
I did this but it didn't work for me. I notice that when I env | grep java as the other post said, I got the same results but after doing your step 1, that same command env | grep java returned nothing at all. I can barely remember that when I first started tinkering with SuSE in 1999, I had the same problem with trying to install StarOffice 5.1. I think someone helped me then but I don't have sufficient notes to know just what I did. It seems from looking at this list, this is a common problem yet the SuSE support database (english) didn't find anything under Java or OO. I even tried visiting the OO site but didn't get anywhere there. If there are a set of steps that really work, could I persuade you to put that in your FAQ? Damon Register
* Damon Register;
Togan Muftuoglu wrote:
Open a terminal (console, Xterm whatever)
1) source setJava IBMJava2 This will make sure you have your JAVA_HOME set to the bin where IBMJava is located.
2) continue installing from this terminal ( If you open another terminal it won't work as the above command sets the Java environment just for that terminal
I did this but it didn't work for me. I notice that when I env | grep java as the other post said, I got the same results but after doing your step 1, that same command env | grep java returned nothing at all.
You have to do all the steps in the same terminal othrwise it won't work
If there are a set of steps that really work, could I persuade you to put that in your FAQ?
Yes -- Togan Muftuoglu Unofficial SuSE FAQ Maintainer http://dinamizm.ath.cx
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
Togan Muftuoglu wrote: 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
* Damon Register;
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
Togan Muftuoglu wrote: source setJava IBMJava2 then I typed env | grep java
Ok once you do the source setJava IBMJava2 type echo $JAVA_HOME now you should get the JAVA_HOME if you inssist on doing with env then env|grep -i java now post the results -- Togan Muftuoglu Unofficial SuSE FAQ Maintainer http://dinamizm.ath.cx
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
* Fergus Wilde;
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
Correct for 8.0 also. On the other hand the command I posted ( source setJava Java2) is helpful when you have more then once Java installed you can change the JAVA_HOME on the fly with this command without worrying about symlinks, who links where and all the other tiny but stressfull details :-) -- Togan Muftuoglu Unofficial SuSE FAQ Maintainer http://dinamizm.ath.cx
On Monday 11 November 2002 14:40, Togan Muftuoglu wrote:
* Fergus Wilde;
on 11 Nov, 2002 wrote: 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
Correct for 8.0 also. On the other hand the command I posted ( source setJava Java2) is helpful when you have more then once Java installed you can change the JAVA_HOME on the fly with this command without worrying about symlinks, who links where and all the other tiny but stressfull details :-)
Thanks Togan, I'll try to commit that to memory. I only had a part of the thread in front of me, so apologies if I was meddling in your message to Damon. Cheers 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
thread in front of me, so apologies if I was meddling in your message to Damon. I would hardly call that meddling. I'll take any help I can get. I am really curious about that setJava trick. From where does this come? Is part of the basic system? Is it provided with a particular package? I hope I don't seem
Fergus Wilde wrote: like a pest but I need to know more in order to better learn what I am doing. Several weeks ago I read a post on this list where the person was saying that when a person writes "do this because..." it really helps the pieces to fall into place. Damon Register
* Damon Register;
thread in front of me, so apologies if I was meddling in your message to Damon. I would hardly call that meddling. I'll take any help I can get. I am really curious about that setJava trick. From where does this come? Is part of the basic system? Is it provided with a particular package? I hope I don't seem
Fergus Wilde wrote: like a pest but I need to know more in order to better learn what I am doing. Several weeks ago I read a post on this list where the person was saying that when a person writes "do this because..." it really helps the pieces to fall into place.
toganm@earth:~/devel> rpm -qf /usr/bin/setJava aaa_base-2002.8.24-0 toganm@earth:~/devel> file /usr/bin/setJava /usr/bin/setJava: Bourne-Again shell script text toganm@earth:~/devel> setJava --help This script sets java for current shell (for next applications) It sets environment variables: PATH, JAVA_BINDIR, JAVA_HOME, JRE_HOME, JDK_HOME, SDK_HOME Usage: setJava --help source setJava [--devel] java_ver Command line options: --help - print this help --devel - use this options if you request the development kit java_ver - is one from: SunJava1, SunJava2, IBMJava2 Java2, default - SunJava1 - java ver. 1.1.x, from Sun Microsystems - SunJava2 - java ver. 1.2.x or 1.3.x, from Sun Microsystems - IBMJava2 - java ver. 1.2.x or 1.3.x, from IBM - Java2 - java ver. 1.2.x or 1.3.x, any vendor - default - any version, any vendor Note: Do not forget to run this script with "source" shell command !!! -- Togan Muftuoglu Unofficial SuSE FAQ Maintainer http://dinamizm.ath.cx
Togan Muftuoglu wrote:
toganm@earth:~/devel> rpm -qf /usr/bin/setJava aaa_base-2002.8.24-0 [stuff deleted] Note: Do not forget to run this script with "source" shell command !!!
Could you please put this stuff in your FAQ? This would be useful
to beginners like me.
* Fergus Wilde;
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
I found it. Thanks. I believe this also might be nice to have in the FAQ. Tonight I did some more testing. The 'source setJava IBMJava2' didn't work for me still. Last night I was trying to follow another suggestion by Patrick to set a symbolic link to the desired java. That didn't work either but tonight I found that I hadn't removed the other symbolic link to the previous java so there was system confusion. After I got the symbolic link corrected to point to SunJava2, OO install recognized the Java and was happy. This leads me to believe that perhpas SunJava1 is inadequate for OO and perhaps this is why OO install didn't find java when the symbolic link pointed to SunJava1. Am I correct in thinking this? If so, could the FAQ also specify which Java packages work and which do not work for OO? When I tried the 'source setJava IBMJava2' trick tonight, OO install was happy but it was showing the SunJava2 and not the IBMJava2. I have included the text from the console showing before and after the 'source setJava IBMJava2'. rosa@dregiste:~> echo $JAVA_HOME /usr/lib/java rosa@dregiste:~> java -version java version "1.3.1_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02) Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode) rosa@dregiste:/usr/local/OpenOffice.org1.0> env | grep -i java SDK_HOME=/usr/lib/java JAVA_BINDIR=/usr/lib/java/bin JAVA_HOME=/usr/lib/java JDK_HOME=/usr/lib/java JRE_HOME=/usr/lib/java/jre PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/opt/kde2/bin:.:/usr/lib/java/bin:/opt/gnome/bin rosa@dregiste:/usr/local/OpenOffice.org1.0> source setJava IBMJava2 rosa@dregiste:/usr/local/OpenOffice.org1.0> echo $JAVA_HOME /usr/lib/IBMJava2 rosa@dregiste:/usr/local/OpenOffice.org1.0> env | grep -i java SDK_HOME=/usr/lib/IBMJava2 JAVA_BINDIR=/usr/lib/IBMJava2/bin JAVA_HOME=/usr/lib/IBMJava2 JDK_HOME=/usr/lib/IBMJava2 JRE_HOME=/usr/lib/IBMJava2/jre PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/opt/kde2/bin:.:/usr/lib/IBMJava2/bin:/opt/gnome/bin rosa@dregiste:/usr/local/OpenOffice.org1.0> java -version java version "1.3.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cx130-20010626 (JIT enabled: jitc)) I guess for me the immediate problem has been solved and I can install OO but I think I would still like to see both methods work and actually know why they work Damon Register
participants (5)
-
Damon Register
-
Damon Register
-
Donn aka N5XWB
-
Fergus Wilde
-
Togan Muftuoglu