Need to use oracle java.
I was able to get it working in latest Pop!_OS witch is a fork i think from Ubuntu because it shares all the same packages.
Following this should get it working in Ubuntu too.
https://www.esoui.com/forums/showthread.php?t=8500