'Minimizing the size of bundled JRE?

I'm trying to minimize the size of the JRE I have bundled with my application and its setup. Right now, the JRE takes up around 220mb whereas the application itself only takes up 20mb. The application itself can run on machines that have Java installed, but it can run on all machines only when I bundle the JRE using launch4j. What I am trying to achieve is, minimize the size of the JRE that I have bundled with my application but I do not know which components are required. How can I determine which components or directories of the JRE are only necessary for my program? I am fairly new to this. Thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source