Forum Discussion

tommerfrancis's avatar
tommerfrancis
Copper Contributor
Nov 21, 2025

Publish Java application to Microsoft Store

Hello everyone, I want to know how to publish a Java application to Microsoft Store. Thank you very much.

2 Replies

  • tommerfrancis​ 

    I interpret your question as "how do I publish an application that uses Java to the Microsoft Store".

    While doing so is straight forward as far as putting the package together, unless you have a redistribution license for a Java to embed in your package, your package would not work without a compatible version of Java installed on the customer system.  

    The Microsoft store does not have a good way for you to trigger this, nor do I think there would be sufficient notice to someone on the store page that they would understand that need.

    Possibly, you could add a front end launcher (not written in java) to your main exe that looks to see if a Java is present and prompts the user to find, download, and install it.  You would not be able to have that program perform the installation as it is running inside the container.

    But generally, store apps do not contain dependencies like this as consumers are not good at handling it.

  • GriJ's avatar
    GriJ
    Brass Contributor

    Hello,
    why woult you publish the java application to microsoft store? For that you will need a lot of prequisites. 

    Can you use Intune? Than it is possible to create a package.

    Another solution would be to install it with winget. You can use the following command:

    winget install Oracle.JavaRuntimeEnvironment

     

    So maybe it would be  a better solution to deploy a script with this command.

     

    PS: is is also possible to upgrade the existing java products with "winget upgrade"

    BR

     

     

     

Resources