I'm using Launch4j to make an .exe file from a .jar file. However, when I give it to a friend, it keeps getting that error "A JNI error has occurred, please check your installation and try again". I think I have a problem with JRE and JDK versions. So I saw this question, but it's too old and now Oracle from JDK11 does not have a separate JRE as before.
I was wondering which minimum JRE version should I put in the launch4j program (it is mandatory) and how to solve that error that my friend keeps getting?
Just to make clear. I can run the .exe file without any error, but when I hand it to my friend, they get that error mentioned above.