I used the linux bash script provided by RuneMate to install java and RuneMate. I had this issue and couldn't find any answers here, so this was my fix:
Download jdk8 from here (you will need an Oracle account to download "end of the line" versions of Java, creating an account is free but...