Java on Mac OS X

Current version of Java

$> java -version

What java executable is command line using

$> ls -al /usr/bin/java

What versions of java exist on system

$> /usr/libexec/java_home -v version.xx

… i.e. if you execute..

$> /usr/libexec/java_home -v 1.7

… it’ll output the runtime lib directory. If you you use a version number that’s not installed it’ll just tell you that it can’t find a directory. In which case you need to install it.
You can also list the java frameworks library directory, but I’ve found this to be inconsistent with new java versions I install…

$> ls /System/Library/Frameworks/JavaVM.framework/Versions/

Installing JDK
To update the command line java we need to download the jdk, not just the jre that the default “google java download” prompts you to. We then need to make sure our env vars (ie JAVA_HOME) are set in .bash_profile.
JDK 8 Installation for OS X (oracle docs)
OS X Platform Install FAQ
Java SE Development Kit 8 Downloads

Sometimes it’s necessary to have multiple jdk versions on your system depending on what you’re running/compiling. Search for “java archive” (it’s at the bottom) to list previous java versions on downloads page…
Java SE Downloads

If we want to switch between java versions we can use the JAVA_HOME env var..

$> export JAVA_HOME=`/usr/libexec/java_home -v version.xx`

Vegas Stuff

Top 5 Floors of Mandalay Bay – Four Seasons
Michael Jackson circue du soleil – Mandalay Bay
Mike tyson – MGM
Casino – Mandalay Bay
KA circue du soleil – MGM
Shark Reef Aquarium – Mandalay Bay
Casino – MGM
Big Apple Roller Coaster – New York-New York Hotel & Casino
Fountains of Bellagio – The Bellagio
Botanical gardens – The Bellagio
Look at flamingos – The Flamingo
Volcano erupt – The Mirage
Gordon Ramsay Pub & Grill – Ceaser’s Palace
Mesa Grill – Ceaser’s Palace
Las Vegas Monorail
Katsuya – SLS Las Vegas
Stratosphere Thrill Rides

THE ULTIMATE LAS VEGAS TRAVEL GUIDE (Thrillist)

16 TOTALLY FREE THINGS TO DO IN VEGAS

12 BARS THAT COULD ONLY EVER EXIST IN LAS VEGAS