I have the latest version of Java installed on my system.
But I wonder why when I run any program, the location from where java executes is
/usr/java/latest/bin/java
instead of/usr/bin/java
.[prompt ~]$ which java /usr/bin/java [prompt ~]$ ls -l /usr/bin/java lrwxrwxrwx 1 root root 22 Jul 23 15:13 /usr/bin/java -> /etc/alternatives/java [prompt ~]$ ps -ef | grep tomcat www 11279 1 0 Jul23 ? 00:02:12 /usr/java/latest/bin/java -D...
Is there a way that I can set where java
should execute from?
- (In my case, I want it to execute from
/usr/bin/java
)
/usr/bin/java
is a symbolic link to/etc/alternatives/java
. What is/etc/alternatives/java
a symbolic link to?