如何将jre打包到windows store的appx中 [英] how to package jre into appx for windows store

查看:71
本文介绍了如何将jre打包到windows store的appx中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用Java编写的Windows应用程序。

I have a windows app I have written in Java.

它已在Windows商店中提供。

It has been available in the windows store.

最多现在它通过添加"需要java运行时"进入商店。在描述中添加。

Up to now it got in to the store by adding "needs java runtime" added in the description.

使用Windows 10 S的方法,appx现在需要包含一个捆绑的jre。

With the approach of Windows 10 S the appx now needs to contain a bundled jre.

我使用一个exe包启动4j然后用MakeAppx打包它,但生成的软件包在安装时不会运行。

i make an exe package using launch 4j and then package it with MakeAppx but the resulting package will not run when installed.

我真的需要一些关于最佳方法的建议。

I really need some advice on the best way to do this.

推荐答案

您好,

感谢您在此发帖。

当您想要使用Windows应用商店,这些应用程序依赖于商店应用程序允许的Windows运行时API。 Java应用程序不遵守该要求。它们依赖于使用不允许的Win32 API的JVM。

When you want to use windows store, these application depends on Windows Runtime APIs allowed for Store apps. Java applications do not abide by that requirement. They depend on the JVM which uses Win32 APIs that are disallowed.

目前只有Windows运行时应用程序可以发布到Windows应用商店。 Windows运行时应用程序与您的Delphi和Java项目创建的桌面应用程序不同。

At present only Windows Runtime apps can be published to the Windows Store. Windows Runtime apps are a different model than the desktop app that your Delphi and Java projects create.

关于桌面应用程序可以使用以下方法打包并通过商店发布。

About desktop application can be be packaged and published through the store using following method.

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆