title: How to bundle a JRE with Launch4j for my java program compiled with JDK 11?
body: <p>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 <a href="https://stackoverflow.com/questions/7071133/how-to-bundle-a-jre-with-launch4j">question</a>, but it's too old and now Oracle from JDK11 does not have a separate JRE as before.</p>
  
  <p>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?</p>
  
  <p>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.</p>