简体   繁体   中英

How to point Java to a symbolic link

Let's say I have symbolic link called /home/team/Java , I want to point Java to that symbolic link

How can I do it Solaris?

Expectation :

When I type "which java" in my environment

It should give output "home/team/Java"

Use this command

ln -s /usr/bin/j2re1.4.2_17/bin/java home/team/Java

here /usr/bin/j2re1.4.2_17/bin/java is your actual java installation directory path

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM