Have you got the correct graphics drivers installed?
Also have a look here, just check the "How to install OpenJDK" to make sure that all the libraries etc are installed. I have used Ubuntu for years and sometimes it has been a bit hit and miss getting everything to work. My bug at the moment is the latest VMplayer which doe's not like my current version of Ubuntu which is 22.04.4 LTS so have used Virtualbox instead.
www.linode.com
Also have a look here, just check the "How to install OpenJDK" to make sure that all the libraries etc are installed. I have used Ubuntu for years and sometimes it has been a bit hit and miss getting everything to work. My bug at the moment is the latest VMplayer which doe's not like my current version of Ubuntu which is 22.04.4 LTS so have used Virtualbox instead.

Installing OpenJDK on Ubuntu 22.04
This guide explains how to install and test the Open Java Development Kit (OpenJDK) version of the Java Runtime Environment (JRE) on Ubuntu 22.04.
