After install of jdk-7-linux-i586.rpm, in terminal type these commands:
update-alternatives --install /usr/bin/java java /usr/java/jdk1.7.0/jre/bin/java 20000
update-alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.7.0/jre/bin/javaws 20000
update-alternatives --install /usr/bin/javac javac /usr/java/jdk1.7.0/bin/javac 20000
update-alternatives --install /usr/bin/jar jar /usr/java/jdk1.7.0/bin/jar 20000
update-alternatives --config java
OpenSuse 64
cd /usr/lib64/browser-plugins
ln -s /usr/java/jdk1.7.0/jre/lib/amd64/libnpjp2.so /usr/lib64/browser-plugins/libnpjp2.so
FoxPro 64bit plugin
update-alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jdk1.7.0/jre/lib/amd64/libnpjp2.so 20000
FoxPro 32bit plugin
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jdk1.7.0/jre/lib/i386/libnpjp2.so 20000
4 comments:
How about this:
sudo bash
cd /usr/java/jdk1.7.0/bin
for bin in *; do update-alternatives --install /usr/bin/$bin $bin /usr/java/jdk1.7.0/bin/$bin 20000; done
cheers
Oliver
How about this:
sudo bash
cd /usr/java/jdk1.7.0/bin
for bin in *; do update-alternatives --install /usr/bin/$bin $bin /usr/java/jdk1.7.0/bin/$bin 20000; done
Cheers
Oliver
Sorry for duplicate comment
Cheers
Oliver
thanks, very good!
Tijolaum
Post a Comment