Sometimes Java isn’t installed by default. To add it

sudo apt-get install icedtea6-plugin