Working app with Java 7