An addendum, this likely won't work with the OpenJDK. You'll probably need to install Oracle Java of at least version 8. (Works up through 10 on my machine.) If you're on Ubuntu, you can just use this delightful PPA instead of manually installing (which is a huge pain):
https://launchpad.net/~webupd8team/+archive/ubuntu/java