I get this same error in ubuntu 18 lts. run java -version to check what version you have and it should provide some suggestions if there is no java installed. I still havent gotten mine to run yet.