Re: [SLE] Changing from Java 1.4 to Java 1.5 using Yast
Hi
I just finished an install SuSE 10 from the Eval-DVD. It came with Java 1.4 but I also need 1.5. If possible I woild like to keep both. I know that 1.5 is available from the ftp site. Can I just change my install location in YAST to one of the mirrors and install 1.5 and when I am done switch back to install source to DVD? Do I have to do some more manipulation? Is there a README somewhere?
If you want both, and don't want to break stuff, then I'd say just install it from the Sun website. Then setup your local ./etc/profile to have the 1.5 version. The Yast-installed apps will still use the 1.4. As for me, I just installed 1.5 from yast and dropped 1.4. No reason to have it, AFAIK. -- kai ponte www.perfectreign.com linux - genuine windows replacement part
With absolutely no warranty :) I offer this script. It uses the "alternatives" api to install jdk 1.5 alongside the older version. (check in case the distribution version is different from what my scrip references!) The alternatives stuff seems to address a difficult problem fairly effectively, so you might want to give the man pages a glance. It's fairly complex (and I'm not an expert in it!), but you'll get the idea fairly quickly, and it seems to make sense. Given that the existing stuff is installed using it, this is probably the most effective way. HTH Cheers, Simon --- Kai Ponte <kai@perfectreign.com> wrote:
Hi
I just finished an install SuSE 10 from the Eval-DVD. It came with Java 1.4 but I also need 1.5. If possible I woild like to keep both. I know that 1.5 is available from the ftp site. Can I just change my install location in YAST to one of the mirrors and install 1.5 and when I am done switch back to install source to DVD? Do I have to do some more manipulation? Is there a README somewhere?
If you want both, and don't want to break stuff, then I'd say just install it from the Sun website. Then setup your local ./etc/profile to have the 1.5 version. The Yast-installed apps will still use the 1.4.
As for me, I just installed 1.5 from yast and dropped 1.4. No reason to have it, AFAIK. -- kai ponte www.perfectreign.com
linux - genuine windows replacement part
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
"You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions." Naguib Mahfouz __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs
* Simon Roberts <thorpflyer@yahoo.com> [11-07-05 16:08]:
With absolutely no warranty :) I offer this script.
your 'script' does not seem to work. In fact, it looks just like two full quoted previous posts that you put your post above ..... -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
Well, let's try again: this time, I'll put it inline, where it risks line ending corruption, but is less likely to be stripped as an attachment. Again, You'll probably need to change the java version numbers, You know how to use :%s/blah/blurb/g in vi, or something similar, yes? If you're about to change them all by hand, get back to me, you don't need to do that. (The script should probably use varables for this, but whatever!) Cheers, Simon -------------------------------------------------------------------- #!/bin/bash ( cd /usr/java/jdk1.5.0_04/man/man1 for i in *gz do gzip $i done ) update-alternatives --install /usr/bin/java java /usr/java/jdk1.5.0_04/bin/java 1504 \ --slave /usr/share/man/man1/rmiregistry.1.gz rmiregistry.1.gz /usr/java/jdk1.5.0_04/man/man1/rmiregistry.1.gz \ --slave /usr/share/man/man1/serialver.1.gz serialver.1.gz /usr/java/jdk1.5.0_04/man/man1/serialver.1.gz \ --slave /usr/share/man/man1/native2ascii.1.gz native2ascii.1.gz /usr/java/jdk1.5.0_04/man/man1/native2ascii.1.gz \ --slave /usr/share/man/man1/orbd.1.gz orbd.1.gz /usr/java/jdk1.5.0_04/man/man1/orbd.1.gz \ --slave /usr/share/man/man1/jarsigner.1.gz jarsigner.1.gz /usr/java/jdk1.5.0_04/man/man1/jarsigner.1.gz \ --slave /usr/share/man/man1/javaws.1.gz javaws.1.gz /usr/java/jdk1.5.0_04/man/man1/javaws.1.gz \ --slave /usr/share/man/man1/policytool.1.gz policytool.1.gz /usr/java/jdk1.5.0_04/man/man1/policytool.1.gz \ --slave /usr/share/man/man1/jmap.1.gz jmap.1.gz /usr/java/jdk1.5.0_04/man/man1/jmap.1.gz \ --slave /usr/share/man/man1/javac.1.gz javac.1.gz /usr/java/jdk1.5.0_04/man/man1/javac.1.gz \ --slave /usr/share/man/man1/servertool.1.gz servertool.1.gz /usr/java/jdk1.5.0_04/man/man1/servertool.1.gz \ --slave /usr/share/man/man1/keytool.1.gz keytool.1.gz /usr/java/jdk1.5.0_04/man/man1/keytool.1.gz \ --slave /usr/share/man/man1/javah.1.gz javah.1.gz /usr/java/jdk1.5.0_04/man/man1/javah.1.gz \ --slave /usr/share/man/man1/javap.1.gz javap.1.gz /usr/java/jdk1.5.0_04/man/man1/javap.1.gz \ --slave /usr/share/man/man1/tnameserv.1.gz tnameserv.1.gz /usr/java/jdk1.5.0_04/man/man1/tnameserv.1.gz \ --slave /usr/share/man/man1/extcheck.1.gz extcheck.1.gz /usr/java/jdk1.5.0_04/man/man1/extcheck.1.gz \ --slave /usr/share/man/man1/apt.1.gz apt.1.gz /usr/java/jdk1.5.0_04/man/man1/apt.1.gz \ --slave /usr/share/man/man1/appletviewer.1.gz appletviewer.1.gz /usr/java/jdk1.5.0_04/man/man1/appletviewer.1.gz \ --slave /usr/share/man/man1/jstack.1.gz jstack.1.gz /usr/java/jdk1.5.0_04/man/man1/jstack.1.gz \ --slave /usr/share/man/man1/kinit.1.gz kinit.1.gz /usr/java/jdk1.5.0_04/man/man1/kinit.1.gz \ --slave /usr/share/man/man1/jstat.1.gz jstat.1.gz /usr/java/jdk1.5.0_04/man/man1/jstat.1.gz \ --slave /usr/share/man/man1/jconsole.1.gz jconsole.1.gz /usr/java/jdk1.5.0_04/man/man1/jconsole.1.gz \ --slave /usr/share/man/man1/jar.1.gz jar.1.gz /usr/java/jdk1.5.0_04/man/man1/jar.1.gz \ --slave /usr/share/man/man1/klist.1.gz klist.1.gz /usr/java/jdk1.5.0_04/man/man1/klist.1.gz \ --slave /usr/share/man/man1/jsadebugd.1.gz jsadebugd.1.gz /usr/java/jdk1.5.0_04/man/man1/jsadebugd.1.gz \ --slave /usr/share/man/man1/idlj.1.gz idlj.1.gz /usr/java/jdk1.5.0_04/man/man1/idlj.1.gz \ --slave /usr/share/man/man1/jinfo.1.gz jinfo.1.gz /usr/java/jdk1.5.0_04/man/man1/jinfo.1.gz \ --slave /usr/share/man/man1/jps.1.gz jps.1.gz /usr/java/jdk1.5.0_04/man/man1/jps.1.gz \ --slave /usr/share/man/man1/rmic.1.gz rmic.1.gz /usr/java/jdk1.5.0_04/man/man1/rmic.1.gz \ --slave /usr/share/man/man1/rmid.1.gz rmid.1.gz /usr/java/jdk1.5.0_04/man/man1/rmid.1.gz \ --slave /usr/share/man/man1/jdb.1.gz jdb.1.gz /usr/java/jdk1.5.0_04/man/man1/jdb.1.gz \ --slave /usr/share/man/man1/ktab.1.gz ktab.1.gz /usr/java/jdk1.5.0_04/man/man1/ktab.1.gz \ --slave /usr/share/man/man1/pack200.1.gz pack200.1.gz /usr/java/jdk1.5.0_04/man/man1/pack200.1.gz \ --slave /usr/share/man/man1/javadoc.1.gz javadoc.1.gz /usr/java/jdk1.5.0_04/man/man1/javadoc.1.gz \ --slave /usr/share/man/man1/java.1.gz java.1.gz /usr/java/jdk1.5.0_04/man/man1/java.1.gz \ --slave /usr/share/man/man1/jstatd.1.gz jstatd.1.gz /usr/java/jdk1.5.0_04/man/man1/jstatd.1.gz \ --slave /usr/share/man/man1/unpack200.1.gz unpack200.1.gz /usr/java/jdk1.5.0_04/man/man1/unpack200.1.gz \ --slave /usr/bin/apt apt /usr/java/jdk1.5.0_04/bin/apt \ --slave /usr/bin/jar jar /usr/java/jdk1.5.0_04/bin/jar \ --slave /usr/bin/jdb jdb /usr/java/jdk1.5.0_04/bin/jdb \ --slave /usr/bin/jps jps /usr/java/jdk1.5.0_04/bin/jps \ --slave /usr/bin/idlj idlj /usr/java/jdk1.5.0_04/bin/idlj \ --slave /usr/bin/jmap jmap /usr/java/jdk1.5.0_04/bin/jmap \ --slave /usr/bin/ktab ktab /usr/java/jdk1.5.0_04/bin/ktab \ --slave /usr/bin/orbd orbd /usr/java/jdk1.5.0_04/bin/orbd \ --slave /usr/bin/rmic rmic /usr/java/jdk1.5.0_04/bin/rmic \ --slave /usr/bin/rmid rmid /usr/java/jdk1.5.0_04/bin/rmid \ --slave /usr/bin/serialver serialver /usr/java/jdk1.5.0_04/bin/serialver \ --slave /usr/bin/extcheck extcheck /usr/java/jdk1.5.0_04/bin/extcheck \ --slave /usr/bin/keytool keytool /usr/java/jdk1.5.0_04/bin/keytool \ --slave /usr/bin/javac javac /usr/java/jdk1.5.0_04/bin/javac \ --slave /usr/bin/javah javah /usr/java/jdk1.5.0_04/bin/javah \ --slave /usr/bin/javap javap /usr/java/jdk1.5.0_04/bin/javap \ --slave /usr/bin/jinfo jinfo /usr/java/jdk1.5.0_04/bin/jinfo \ --slave /usr/bin/jstat jstat /usr/java/jdk1.5.0_04/bin/jstat \ --slave /usr/bin/kinit kinit /usr/java/jdk1.5.0_04/bin/kinit \ --slave /usr/bin/klist klist /usr/java/jdk1.5.0_04/bin/klist \ --slave /usr/bin/unpack200 unpack200 /usr/java/jdk1.5.0_04/bin/unpack200 \ --slave /usr/bin/native2ascii native2ascii /usr/java/jdk1.5.0_04/bin/native2ascii \ --slave /usr/bin/appletviewer appletviewer /usr/java/jdk1.5.0_04/bin/appletviewer \ --slave /usr/bin/jstack jstack /usr/java/jdk1.5.0_04/bin/jstack \ --slave /usr/bin/jstatd jstatd /usr/java/jdk1.5.0_04/bin/jstatd \ --slave /usr/bin/tnameserv tnameserv /usr/java/jdk1.5.0_04/bin/tnameserv \ --slave /usr/bin/servertool servertool /usr/java/jdk1.5.0_04/bin/servertool \ --slave /usr/bin/jarsigner jarsigner /usr/java/jdk1.5.0_04/bin/jarsigner \ --slave /usr/bin/pack200 pack200 /usr/java/jdk1.5.0_04/bin/pack200 \ --slave /usr/bin/jsadebugd jsadebugd /usr/java/jdk1.5.0_04/bin/jsadebugd \ --slave /usr/bin/javadoc javadoc /usr/java/jdk1.5.0_04/bin/javadoc \ --slave /usr/bin/rmiregistry rmiregistry /usr/java/jdk1.5.0_04/bin/rmiregistry \ --slave /usr/bin/policytool policytool /usr/java/jdk1.5.0_04/bin/policytool \ --slave /usr/bin/jconsole jconsole /usr/java/jdk1.5.0_04/bin/jconsole -------------------------------------------------------------------- --- Patrick Shanahan <ptilopteri@gmail.com> wrote:
* Simon Roberts <thorpflyer@yahoo.com> [11-07-05 16:08]:
With absolutely no warranty :) I offer this script.
your 'script' does not seem to work. In fact, it looks just like two full quoted previous posts that you put your post above ..... -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
"You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions." Naguib Mahfouz __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
* Simon Roberts <thorpflyer@yahoo.com> [11-08-05 13:10]: deleted
--- Patrick Shanahan <ptilopteri@gmail.com> wrote:
your 'script' does not seem to work. In fact, it looks just like two full quoted previous posts that you put your post above .....
sorry, guess I wasted this one
"You can tell whether a man is clever by his answers.
not ?? cluelessssss -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
participants (3)
-
Kai Ponte
-
Patrick Shanahan
-
Simon Roberts