Java 6/7/8 Compatibility (Thanks Mac)