updated to deal with problems with the oracle java 8 preview