简体   繁体   English

用java电子书怎么打包?

[英]Electron with java how to package?

I need to build a desktop application which the GUI just to modify a configuration file and java application running as a window service (or cron job in linux) to do processing. 我需要构建一个桌面应用程序,其GUI只是为了修改配置文件,而需要以窗口服务(或Linux中的cron作业)运行的Java应用程序进行处理。

I was thinking to use electron as GUI and java as background. 我当时正在考虑使用电子作为GUI并使用Java作为背景。 I quite like the idea of electron where I can use html and other web frameworks compare to JavaFX. 我非常喜欢电子的想法,与JavaFX相比,我可以使用html和其他Web框架。

How can I package it together as an installer? 如何将其打包在一起作为安装程序? Or any other ideas is welcome. 或任何其他想法是受欢迎的。

Thanks 谢谢

Check out InstallBuilder 16 which is, unfortunately, quite pricey (around 2000$ for combined Windows/Linux install). InstallBuilder 16 ,很不幸,它非常昂贵(Windows / Linux组合安装的价格约为2000美元)。

If you want to go open-source, try http://izpack.org/ . 如果要开源,请尝试http://izpack.org/

I made something similar using sockets. 我使用套接字做了类似的事情。 I connect my Electron to my Java application via Socket (nodejs " net library). I can communicate bidirectional and sending a Java command I can open electron Window. I think this can be a solution even in your case. 我通过Socket(nodejs net库)将Electron连接到Java应用程序,可以双向通信并发送Java命令,可以打开电子窗口,即使您遇到这种情况,我也认为这是一个解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM