Ubuntu MATE 18.04.4 Lts raspberry Pi 3 B+ java

Im using the latest software on a brand new pi 3 B+ and i can not get any of the Java to load to the pi I have used sudo commands, I have downloaded directly from java net, but nothing is working for me. I keep getting an "unable to unlock file" message.
The last try has resulted in a login loop.

Has anyone had this issue befor? Any help would be greatly appreciated.