Do you use Java edition?
I am using Java edition, so that I only know about Java.
If you use Java edition, I think you can run you jar file in command line to see what error is.
I met the same error before, I found there were deferent problem can make the same what you see. So run jar file first and see the error message.