After installing that version of the JDK, you have to also configure your system so that it uses that interpreter first and foremost. To do that, you'll want to run the Java Preferences app, which lives in /Applications/Utilities. In that app, you'll see a list of all your Java installations. Drag the OpenJDK7 one to the very top.