Remove unnecessary error recovery for fatal errors
Fix demo build
Change minimum Java version to 7 #1633
Fix Travis CI build
Fix Java code issues based on IntelliJ IDEA analysis
Fix Java compilation on Travis CI