This is a discussion on problem installing j2se 1.4.2 within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Hello, I've attempted to install j2se 1.4.2 on a solaris 8 machine. I've left the original java 1.2.2 directory ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello, I've attempted to install j2se 1.4.2 on a solaris 8 machine. I've left the original java 1.2.2 directory (/usr/bin/java). When I run "which java" it points to the java in /usr/bin/java. I have a few questions. Should I link the old to the new and is this correct? ln -s /usr/bin/java /usr/j2se/bin/sparcv9 Is there any difference between the command link and ln -s? To remove a symlink do you simply type unlink /usr/j2se/bin/sparcv9 ? Thanks in advance. Chris |
| |||
| cmoore@linuxmail.org (Chris Moore) writes in comp.sys.sun.admin: |Is there any difference between the command link and ln -s? Yes. ln -s makes symbolic links (aka "soft links"), link makes hard links (like ln without -s and with the ability to corrupt your filesystem if you run as root and make a mistake). |To remove a symlink do you simply type unlink /usr/j2se/bin/sparcv9 ? No, you type rm /usr/j2se/bin/sparcv9 Don't use the link and unlink commands - they allow you to corrupt your filesystem without warning if run as root. There is almost never any good reason to run them instead of ln and rm. -- __________________________________________________ ______________________ Alan Coopersmith alanc@alum.calberkeley.org http://www.CSUA.Berkeley.EDU/~alanc/ aka: Alan.Coopersmith@Sun.COM Working for, but definitely not speaking for, Sun Microsystems, Inc. |
| |||
| Hi Chris, Chris Moore wrote: > Hello, > I've attempted to install j2se 1.4.2 on a solaris 8 machine. I've left > the original java 1.2.2 directory (/usr/bin/java). When I run "which > java" it points to the java in /usr/bin/java. I have a few questions. > Should I link the old to the new and is this correct? > ln -s /usr/bin/java /usr/j2se/bin/sparcv9 You have to move your java 1.2.2 mv /usr/java /usr/java_1.2.2 and make a soft link from java 1.2.2 to /usr/java ln -s /usr/j2se /usr/java /usr/bin/java is a link from /usr/java/bin/java Marc La Senne Technical Customer Manager IBM Web Hosting services C.E.R. IBM - Le Plan du Bois - 06610 La Gaude - FRANCE lasenne@fr.ibm.com +33(0)4 9211 5522 Fax: +33(0)4 9324 7500 |
| |||
| Thanks Alan, Merci Marc. Marc La Senne <lasenne@fr.ibm.com> wrote in message news:<3F58A450.8000007@fr.ibm.com>... > Hi Chris, > > Chris Moore wrote: > > Hello, > > I've attempted to install j2se 1.4.2 on a solaris 8 machine. I've left > > the original java 1.2.2 directory (/usr/bin/java). When I run "which > > java" it points to the java in /usr/bin/java. I have a few questions. > > Should I link the old to the new and is this correct? > > ln -s /usr/bin/java /usr/j2se/bin/sparcv9 > > You have to move your java 1.2.2 > mv /usr/java /usr/java_1.2.2 > and make a soft link from java 1.2.2 to /usr/java > ln -s /usr/j2se /usr/java > > /usr/bin/java is a link from /usr/java/bin/java > > Marc La Senne > Technical Customer Manager > IBM Web Hosting services > C.E.R. IBM - Le Plan du Bois - 06610 La Gaude - FRANCE > lasenne@fr.ibm.com > +33(0)4 9211 5522 > Fax: +33(0)4 9324 7500 |
| ||||
| Alan Coopersmith wrote: > Don't use the link and unlink commands - they allow you to corrupt your > filesystem without warning if run as root. There is almost never any > good reason to run them instead of ln and rm. Until you get BOFH who does: nawk -F: '{print $6;}' /etc/passwd | sort | uniq | while read i ; do echo "\n" > ${i}/"-rf *" ; done Then calls the users to report that a virus has caused a strangely-named file to appear in users' home directories, and that this file should be deleted immediately ;^) |