relink directories


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users relink directories
# 1  
Old 01-09-2008
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 #

# 2  
Old 01-09-2008
Code:
ln -fs j2re1.4.2_15 java

# 3  
Old 01-14-2008
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.
# 4  
Old 01-14-2008
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.
# 5  
Old 01-14-2008
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Giving read write permission to user for specific directories and sub directories.

I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. This is for Solaris. Please help. (1 Reply)
Discussion started by: blinkingdan
1 Replies

2. AIX

Relink without recompiling

Hello, There is a need to link a new dynamic library to a big number of exes. Unfortunately, I cannot recompile/link all these exes against the new library. Is there any way to link an existing executable with the new library? (everything has been compiled using the xlc tool) Thanks (1 Reply)
Discussion started by: geodimo
1 Replies

3. SCO

Relink kernel error

SCO Unix 5.0.5 wd Srom 1 /var/opt/K/SCO/link/1.1.0Eb/etc/conf/cf.d/msci - parameter count Idbuild idscsi had errors System build failed. Any idea ? (1 Reply)
Discussion started by: lakicevic
1 Replies

4. UNIX for Dummies Questions & Answers

List the directories, having given pattern in the directories name, sorted by creation date

It is for HP-Unix B.11.31. Requirement: 1. List the directories, having given pattern in the directories name, sorted by creation date. Example: Directories with name "pkg32*" or "pkg33*" 2. On the output of 1. list the directories by creation date as sort order, with creation date... (2 Replies)
Discussion started by: Siva SQL
2 Replies

5. Shell Programming and Scripting

How to list all the files, directories and sub-directories in the current path except one directory?

Can anyone come up with a unix command that lists all the files, directories and sub-directories in the current directory except a folder called log.? Thank you in advance. (7 Replies)
Discussion started by: Manjunath B
7 Replies

6. Shell Programming and Scripting

Script for parsing directories one level and finding directories older than n days

Hello all, Here's the deal...I have one directory with many subdirs and files. What I want to find out is who is keeping old files and directories...say files and dirs that they didn't use since a number of n days, only one level under the initial dir. Output to a file. A script for... (5 Replies)
Discussion started by: ejianu
5 Replies

7. Shell Programming and Scripting

check if multiple directories exist else create missing directories

Hi , I 'm trying to check if multiple directories exist on a server, if not create the missing ones and print " creating missing directory. how to write this in a simple script, I have made my code complex if ; then taskStatus="Schema extract directory exists, checking if SQL,Count and... (7 Replies)
Discussion started by: ramky79
7 Replies

8. UNIX for Advanced & Expert Users

Relink a binary

Hi, under Unix AIX 5 3 , when launching a binary called adworker (ORACLE BINARY) I have this message : Could not load program /exec/products/OA/v11.5.10.2/p13drec/p13dsmsappl/ad/11.5.0/bin/adworker: rtld: 0712-001 Symbol __pth_init was referenced from module adworker(), but a runtime definition... (1 Reply)
Discussion started by: big123456
1 Replies

9. AIX

Compilation of gettext produces relink errors

Hi, I'm in the process of compiling gnu gettext on a rs/6000 43p-260 running AIX 5.1 in 64bit-mode. The compilation itself runs fine as I understand it, however the installation itself fails like so: I'm pretty much clueless about this relink stuff, so if anyone has suggestions, I'll try... (0 Replies)
Discussion started by: töfte
0 Replies
Login or Register to Ask a Question