Java 8 (1.8.11 at the time of the writing) is the latest Java version. It was released in March this year and contain various major updates, including the long-waited lambda support. This blog described how to update to JDK 8 on Mac OS and also to check the lambda support with a simple app.
I was able to set up the Django sample site on my Dreamhost site. Django is a high-level Python Web framework that facilitates rapid web application development. I was able to follow the Django tutorial and instruction from Dreamhost to add a Django site to my domain.