Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with java and ln

Status
Not open for further replies.

nistelreu

IS-IT--Management
Aug 11, 2005
2
CH
Hello

I like to do a link from /usr/bin/java to /usr/java14_64/jre/bin. So that every user can find the java environment, without a change of the profiles.

# ls -la |grep java
lrwxrwxrwx 1 bin bin 23 Aug 11 09:05 java -> /usr/java14_64/jre/bin/

The problem is:

# java -version
/usr/bin/java: The file access permissions do not allow the specified action..


Any idee??

Thanks a lot
 
Hi,

add the following at the end of the /etc/profile file.
JAVA_HOME=/usr/java14_64/jre
save the file.

add the following at the end of the /etc/environment file
PATH=$PATH;/usr/java14_64/jre/bin
save the file.

Java based applications need JAVA_HOME=/usr/java14_64/jre.
PATH is updated so that any user uses will have correct version of java applied to their shell.

Hope it helps.






aixnag
IBM Certified Specialist - P-series AIX 5L Administration
IBM Certified Specialist - AIX V4 HACMP
 
Thanks for your help.

The problem is, that each user has his own PATH definition in .profile. So the /etc/profile don't work...

But my link is now running :)

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top