Unix Technical Forum

problem installing j2se 1.4.2

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 06:28 AM
Chris Moore
 
Posts: n/a
Default problem installing j2se 1.4.2

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 06:28 AM
Alan Coopersmith
 
Posts: n/a
Default Re: problem installing j2se 1.4.2

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 06:28 AM
Marc La Senne
 
Posts: n/a
Default Re: problem installing j2se 1.4.2

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-12-2008, 06:28 AM
Chris Moore
 
Posts: n/a
Default Re: problem installing j2se 1.4.2

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-12-2008, 06:29 AM
Beardy
 
Posts: n/a
Default Re: problem installing j2se 1.4.2

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 ;^)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:09 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com