support scala 2.11 and update JAVA_OPTS for java 8