One-Liner to Install Java JDK into /usr/local/bin

There's a zillion ways to do it, and editing $PATH is probably the best, but I didn't want to do that, so I did this:

for i in ` ls /usr/local/java/jdk1.7.0_21/bin/ ` ; do echo $i ; ln -sf /usr/local/java/jdk1.7.0_21/bin/$i $i ; done

That symlinks all the stuff in bin into /usr/local/bin, which is already in the $PATH.