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