是否可以将Java Swing桌面应用程序转换为UWP百年纪念应用程序(AppX)? [英] Can a Java Swing desktop application be converted to a UWP centennial app (AppX)?

查看:41
本文介绍了是否可以将Java Swing桌面应用程序转换为UWP百年纪念应用程序(AppX)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读有关百年纪念项目的信息( https://msdn.microsoft.com/windows/uwp/porting/desktop-to-uwp-root#preparing-your-desktop-app-for-conversion-to-uwp ),我想到有许多用Java编写的遗留业务应用程序(更不用说Python/Tkinter,此处的插入语言/gui工具包,等等).

I have been reading about project centennial (https://msdn.microsoft.com/windows/uwp/porting/desktop-to-uwp-root#preparing-your-desktop-app-for-conversion-to-uwp), and it occurs to me that there are many legacy line-of-business apps that are written in Java (not to mention Python/Tkinter, insert language/gui toolkit here, etc).

我可以通过Windows商店(在企业内部或对公众)销售/分发这些软件,这对我有好处.

I can see a benefit in being able to market/distribute these through the Windows store (either internally for an enterprise or to the general public).

我想知道是否有可能将Java应用程序转换为AppX捆绑包(可能在中间步骤中使用launch4j之类的东西)?

I was wondering if it is possible to turn a Java application into an AppX bundle (possibly using something like launch4j as an in-between step)?

推荐答案

可以使用百年纪念计划.只需使用桌面应用转换器在静默模式下使用安装程序就可以了.

It is possible, using Project Centennial. Just do the conversion process using the Desktop App Converter using your installer in silent mode and that's it.

您还可以使用无安装程序模式,只需将所有内容(您的应用程序和jre)放在一个文件夹中,创建一个将调用Java程序,创建清单并调用makepappx的exe.一切都在文档中.而且,将Java应用程序部署到Mac Store的过程非常相似.

You can also use the installerless mode, just put everything (your app and jre) in a folder, create an exe which will call your java program, create your manifest and call makepappx. Everything is in the documentation. And the process is very similar to deploy java applications to Mac Store.

更新

由于缺乏有关为Windows Store打包Java应用程序的信息,我使用捆绑在JDK中的名为SwingSet的演示应用程序创建了一个简单的框架,以简化很多过程.请检查它: https://github.com/crramirez/uwp_bridge_java 并根据自己的需要做出贡献一个很好的起点.

Due to the lack of information out there about packing Java applications for Windows Store, I created an simple skeleton using a demo app bundled in the JDK called SwingSet to ease a lot the process. Please check it: https://github.com/crramirez/uwp_bridge_java and contribute with your own needs to have a good starting point.

我还向商店发布了Java应用程序,因此此过程有效.

I also published a Java application to the store, so this procedure works.

致谢

这篇关于是否可以将Java Swing桌面应用程序转换为UWP百年纪念应用程序(AppX)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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