Thank you so much for this tip. I’ve been racking my brain for the last 3 hours trying to get this working and this trick did it for me. Huge thanks!
Don’t know if this will help anyone else but I did originally install the Zulu vm and then ended up deleting this and going with oracle which gave me the same result. Then installed the developer files and that worked perfectly.