Re: [SLE] /etc/alternatives on Suse 9.2 - THANKS to all
From: ianseeks (ianseeks_at_dsl.pipex.com)
Date: 01/10/05
- Previous message: Brad Bourn: "Re: [SLE] vnc configuration"
- In reply to: Randall R Schulz: "Re: [SLE] /etc/alternatives on Suse 9.2"
- Next in thread: Randall R Schulz: "Re: [SLE] /etc/alternatives on Suse 9.2 - THANKS to all"
- Reply: Randall R Schulz: "Re: [SLE] /etc/alternatives on Suse 9.2 - THANKS to all"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: suse-linux-e@suse.com Date: Mon, 10 Jan 2005 22:51:40 +0000
I've downloaded and installed Java 2 as suggested and it also went
into /usr/java directory.
It was an interesting thread regarding "ln" but unfortunately I wanted to know
about "/etc/alternatives" and how to change all those links without a long
winded manual approach.
/usr/lib/java doesn't seem to exist anymore. It appears to be replaced by the
"/etc/alternatives" idea. (See directory list below). "/usr/bin/java" is now
a symlink to "/etc/alternatives/java" which in turn is a symlink to
"/usr/lib/jvm/jre-1.4.2-sun/bin/java". I want to change this
to /usr/java/jre1.5.0_01/bin/java ... and so on.
I guess i'm going to have to work this out manually unless i can find a script
that does this automatically.
regards
Ian
drwxr-xr-x 2 root root 960 2004-12-27 09:51 .
drwxr-xr-x 72 root root 6640 2005-01-10 19:36 ..
lrwxrwxrwx 1 root root 35 2004-12-27 09:51 java
-> /usr/lib/jvm/jre-1.4.2-sun/bin/java
lrwxrwxrwx 1 root root 44 2004-12-27 09:51 java.1.gz
-> /usr/share/man/man1/java-java-1.4.2-sun.1.gz
lrwxrwxrwx 1 root root 33 2004-12-27 09:51 javaws
-> /usr/lib/jvm/jre-1.4.2-sun/javaws
lrwxrwxrwx 1 root root 46 2004-12-27 09:51 javaws.1.gz
-> /usr/share/man/man1/javaws-java-1.4.2-sun.1.gz
lrwxrwxrwx 1 root root 64 2004-12-27 09:51 jce_1.4.2_sun_local_policy
-> /usr/lib/jvm-private/java-1.4.2-sun/jce/vanilla/local_policy.jar
lrwxrwxrwx 1 root root 68 2004-12-27 09:51 jce_1.4.2_sun_us_export_policy
-> /usr/lib/jvm-private/java-1.4.2-sun/jce/vanilla/US_export_policy.jar
lrwxrwxrwx 1 root root 26 2004-12-27 09:51 jre
-> /usr/lib/jvm/jre-1.4.2-sun
lrwxrwxrwx 1 root root 26 2004-12-27 09:51 jre_1.4.2
-> /usr/lib/jvm/jre-1.4.2-sun
lrwxrwxrwx 1 root root 34 2004-12-27 09:51 jre_1.4.2_exports
-> /usr/lib/jvm-exports/jre-1.4.2-sun
lrwxrwxrwx 1 root root 34 2004-12-27 09:51 jre_exports
-> /usr/lib/jvm-exports/jre-1.4.2-sun
lrwxrwxrwx 1 root root 26 2004-12-27 09:51 jre_sun
-> /usr/lib/jvm/jre-1.4.2-sun
lrwxrwxrwx 1 root root 34 2004-12-27 09:51 jre_sun_exports
-> /usr/lib/jvm-exports/jre-1.4.2-sun
lrwxrwxrwx 1 root root 38 2004-12-27 09:51 keytool
-> /usr/lib/jvm/jre-1.4.2-sun/bin/keytool
lrwxrwxrwx 1 root root 47 2004-12-27 09:51 keytool.1.gz
-> /usr/share/man/man1/keytool-java-1.4.2-sun.1.gz
lrwxrwxrwx 1 root root 45 2004-12-27 09:51 kinit.1.gz
-> /usr/share/man/man1/kinit-java-1.4.2-sun.1.gz
lrwxrwxrwx 1 root root 45 2004-12-27 09:51 klist.1.gz
-> /usr/share/man/man1/klist-java-1.4.2-sun.1.gz
lrwxrwxrwx 1 root root 44 2004-12-27 09:51 ktab.1.gz
-> /usr/share/man/man1/ktab-java-1.4.2-sun.1.gz
lrwxrwxrwx 1 root root 35 2004-12-27 09:51 orbd
-> /usr/lib/jvm/jre-1.4.2-sun/bin/orbd
lrwxrwxrwx 1 root root 44 2004-12-27 09:51 orbd.1.gz
-> /usr/share/man/man1/orbd-java-1.4.2-sun.1.gz
lrwxrwxrwx 1 root root 41 2004-12-27 09:51 policytool
-> /usr/lib/jvm/jre-1.4.2-sun/bin/policytool
lrwxrwxrwx 1 root root 50 2004-12-27 09:51 policytool.1.gz
-> /usr/share/man/man1/policytool-java-1.4.2-sun.1.gz
lrwxrwxrwx 1 root root 35 2004-12-27 09:51 rmid
-> /usr/lib/jvm/jre-1.4.2-sun/bin/rmid
lrwxrwxrwx 1 root root 44 2004-12-27 09:51 rmid.1.gz
-> /usr/share/man/man1/rmid-java-1.4.2-sun.1.gz
lrwxrwxrwx 1 root root 42 2004-12-27 09:51 rmiregistry
-> /usr/lib/jvm/jre-1.4.2-sun/bin/rmiregistry
lrwxrwxrwx 1 root root 51 2004-12-27 09:51 rmiregistry.1.gz
-> /usr/share/man/man1/rmiregistry-java-1.4.2-sun.1.gz
lrwxrwxrwx 1 root root 41 2004-12-27 09:51 servertool
-> /usr/lib/jvm/jre-1.4.2-sun/bin/servertool
lrwxrwxrwx 1 root root 50 2004-12-27 09:51 servertool.1.gz
-> /usr/share/man/man1/servertool-java-1.4.2-sun.1.gz
lrwxrwxrwx 1 root root 40 2004-12-27 09:51 tnameserv
-> /usr/lib/jvm/jre-1.4.2-sun/bin/tnameserv
lrwxrwxrwx 1 root root 49 2004-12-27 09:51 tnameserv.1.gz
-> /usr/share/man/man1/tnameserv-java-1.4.2-sun.1.gz
On Monday 10 Jan 2005 19:27, Randall R Schulz wrote:
> Martin,
>
> On Monday 10 January 2005 11:04, Martin Deppe wrote:
> > ...
> >
> > >Yes, they are backward. Your invocation creates a symlink called
> > > "java" in the directory "/usr/java/jdk1.4.6" which points to the
> > > non-existent file system entity "/usr/lib/java".
> >
> > That's the interesting point with it, the <source> doesn't need to
> > exist.
>
> Yes, but a symlink that points to nothing is useless.
>
> Here's an example (now a bit out-of-date as far as versions go) of a
> proper orientation of the symbolic link you're trying to construct that
> illustrates my system's set-up:
>
> % ll /usr/lib/java
> lrwxrwxrwx 1 root root 12 2004-06-17 23:55 /usr/lib/java -> SunJava2-1.4/
>
>
> And to clarify further:
>
> % ln --help
> Usage: ln [OPTION]... TARGET [LINK_NAME]
> ...
>
>
> The command that would create the symlink required for Java on my system
> (running 1.4.2) is:
>
> # rm /usr/lib/java
> # ln -s /usr/lib/SunJava2-1.4 /usr/lib/java
>
> > Martin
>
> Randall Schulz
- Previous message: Brad Bourn: "Re: [SLE] vnc configuration"
- In reply to: Randall R Schulz: "Re: [SLE] /etc/alternatives on Suse 9.2"
- Next in thread: Randall R Schulz: "Re: [SLE] /etc/alternatives on Suse 9.2 - THANKS to all"
- Reply: Randall R Schulz: "Re: [SLE] /etc/alternatives on Suse 9.2 - THANKS to all"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|