# How can I add a JVM to an application distribution

**URL:** <https://discuss.gradle.org/t/how-can-i-add-a-jvm-to-an-application-distribution/40787>\
**Category:** Help/Discuss\
**Created:** [August 19, 2021, 10:49am UTC](https://discuss.gradle.org/t/how-can-i-add-a-jvm-to-an-application-distribution/40787 "2021-08-19T10:49:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)\
**Post date:** [August 19, 2021, 11:04am UTC](https://discuss.gradle.org/t/how-can-i-add-a-jvm-to-an-application-distribution/40787/2 "2021-08-19T11:04:01Z")

</div>

There is no built-in support for this, at least not yet.  
But you can for example register three tasks, one that creates a windows JVM image, one that creates a linux JVM image, and one that creates a mac JVM image and then configure the application distribution to include those JVM images in the distributable archive, and modify the start scripts to use these packaged JVM images, either by manipulating the generated start scripts or by using own templates for the start scripts generation task.

---

_[View the full topic](https://discuss.gradle.org/t/how-can-i-add-a-jvm-to-an-application-distribution/40787)._
