title: Application requires a JRE version
body: <p>After update <code>Java</code> to <code>1.8.0_101</code> when I try to run my application (which after compilation is <code>.exe</code>) appear information <code>This application requires a Java Runtime Environment 1.8.0_40</code> and application not  running. I used <code>launch4j</code></p>
  
  <p>Someone have the same problem ? Any idea why after update <code>Java</code> it is shown ?</p>
  
  <p><code>pom.xml</code></p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
      &lt;version&gt;3.0&lt;/version&gt;
      &lt;configuration&gt;
          &lt;source&gt;1.8&lt;/source&gt;
          &lt;target&gt;1.8&lt;/target&gt;
          &lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
          &lt;executable&gt;${env.JAVA_HOME}&lt;/executable&gt;
          &lt;compilerArguments&gt;
              &lt;bootclasspath&gt;${env.JAVA_HOME}/jre/lib/rt.jar:${env.JAVA_HOME}/jre/lib/jce.jar&lt;/bootclasspath&gt;
          &lt;/compilerArguments&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>There is <code>launch4j</code> plugin configuration</p>
  
  <pre><code> &lt;plugin&gt;
          &lt;groupId&gt;com.akathist.maven.plugins.launch4j&lt;/groupId&gt;
          &lt;artifactId&gt;launch4j-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;1.5.2&lt;/version&gt;
          &lt;executions&gt;
              &lt;execution&gt;
                  &lt;id&gt;l4j-gui&lt;/id&gt;
                  &lt;phase&gt;package&lt;/phase&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;launch4j&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;configuration&gt;
                      &lt;headerType&gt;gui&lt;/headerType&gt;
                      &lt;outfile&gt;target/App.exe&lt;/outfile&gt;
                      &lt;jar&gt;target/App.jar&lt;/jar&gt;
                      &lt;priority&gt;high&lt;/priority&gt;
                      &lt;errTitle&gt;App&lt;/errTitle&gt;
                      &lt;classPath&gt;
                          &lt;mainClass&gt;com.app.Main&lt;/mainClass&gt;
                      &lt;/classPath&gt;
                      &lt;jre&gt;
                          &lt;minVersion&gt;1.8.0_40&lt;/minVersion&gt;
                      &lt;/jre&gt;
                      &lt;versionInfo&gt;
                          &lt;productName&gt;App&lt;/productName&gt;
                          &lt;internalName&gt;app&lt;/internalName&gt;
                          &lt;originalFilename&gt;App.exe&lt;/originalFilename&gt;                                    
                      &lt;/versionInfo&gt;
                  &lt;/configuration&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
    &lt;/plugin&gt;
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>After change the <code>minVersion</code> to <code>1.8.0._101</code> it works but I am not satisfied with this, because when next version of <code>Java</code> (for example <code>1.8.0_102</code>) comes I will have to change this too... </p>