The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Listing directories and sub directories jinxor UNIX for Advanced & Expert Users 3 03-11-2008 07:27 AM
moving directories to new directories on multiple servers mackdaddy07 Shell Programming and Scripting 0 04-06-2007 08:30 AM
Relink a binary big123456 UNIX for Advanced & Expert Users 1 03-27-2007 02:08 PM
Compilation of gettext produces relink errors töfte AIX 0 09-05-2006 03:15 PM
du -ks on certain directories only Shambo Shell Programming and Scripting 1 09-05-2002 01:41 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-09-2008
Registered User
 

Join Date: Jul 2007
Posts: 53
relink directories

Hello,
I installed a new java version on a suse linux box. I see directory java is linked to the old SunJava 1.3 version. How can I relink it to the j2re1.4.2_15 directory so it will use the new java version without me having to hardcode the directory. Thanks.



Code:
lrwxrwxrwx    1 root     root           12 Jul  1  2005 java -> SunJava2-1.3
lrwxrwxrwx    1 root     root           12 Jul  1  2005 java2 -> SunJava2-1.3
Test:/usr/lib # ls -lrt | grep j2re1*
drwxrwxr-x    8 root     root         4096 Jan  8 17:08 j2re1.4.2_15
Test:/usr/lib #
Reply With Quote
Forum Sponsor
  #2  
Old 01-09-2008
Registered User
 

Join Date: Oct 2007
Posts: 155
Code:
ln -fs j2re1.4.2_15 java
Reply With Quote
  #3  
Old 01-14-2008
Registered User
 

Join Date: Jul 2007
Posts: 53
I'm typing the link command but it's not changing the current link from SunJava to the new java version.. Do I need to unlink the java directory first and then link them back up. Thanks.
Reply With Quote
  #4  
Old 01-14-2008
Registered User
 

Join Date: Jul 2007
Posts: 53
I guess the real question is how do I change the environment so it uses the new java version from the jr2e directory. I can't find how it sets up the java environement in Suse 8. Thanks.
Reply With Quote
  #5  
Old 01-14-2008
Registered User
 

Join Date: Jul 2007
Posts: 53
Probably should do this, but I got on another box so I would mess up our man test box and figured this out... I just rm java and java2... remade the links with the new java, one minor directory change and all is ok I guess.. Thanks.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0