fixed java issues and created java8 module