working version with openjdk installed for linux