Does somebody know how to pack a particular JRE together with a compiled Java application? I currently have an executable jar file and wish to put JRE 6 Update 31 in it. So
If it is a NetBeans platform application, NetBeans itself has the option to bundle additional resources and JRE .
Source: https://platform.netbeans.org/tutorials/nbm-nbi.html#bundling-jre