I have Java 1.6 and Java 1.7 in different directories (/usr/java) and a soft link pointing to one of them (the one I wish to use at that time).

i.e.:

```
total 16
drwxr-xr-x  4 root  root  4096 Jan 31 12:16 ./
drwxr-xr-x 11 root  root  4096 Jan 30 12:52 ../
lrwxrwxrwx  1 root  root     6 Jan 31 12:16 default -> java6//
lrwxrwxrwx  1 root  root    12 Jan 31 12:15 java6 -> jdk1.6.0_37//
lrwxrwxrwx  1 root  root    12 Jan 31 12:15 java7 -> jdk1.7.0_11//
drwxr-xr-x  8 david david 4096 Jan 30 18:16 jdk1.6.0_37/
drwxr-xr-x  8 david david 4096 Jan 31 12:14 jdk1.7.0_11/

```

This means I can just change where the default link points and I change where my JAVA\_HOME points.

My system is, however, overrun with OpenJDK and Iced tea. I've removed them (I think) so not I have no system java at all.

My question is, how do I make my system look for Java where the default link is pointing?

Thank all

Dave