如何构建独立的 Scala 可执行文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11313694/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to build a stand-alone scala executable
提问by Henry Henrinson
I am trying to create a standalone .exe file (or something equivalent) from a scala project I have started. I need to create this in such a way thet the person using the application has to do the least amount of work possible (double-click an installer or just the .exe file). What are my options?
我正在尝试从我启动的 Scala 项目创建一个独立的 .exe 文件(或等效文件)。我需要以这样一种方式来创建它,即使用该应用程序的人必须做尽可能少的工作(双击安装程序或仅单击 .exe 文件)。我有哪些选择?
回答by Don Mackenzie
Take a look at ej-technologiesthe creators of JProfiler, they have a couple of products that might be useful to you, quoting from their product page:
看看JProfiler 的创建者ej-technologies,他们有一些可能对您有用的产品,引用自他们的产品页面:
install4jA cross platform Java installer that generates native installers and application launchers for your Java applications.
exe4jA Java exe maker that helps you integrate your Java applications into the Windows operating environment.
install4j一个跨平台的 Java 安装程序,可为您的 Java 应用程序生成本机安装程序和应用程序启动程序。
exe4j一个 Java exe 生成器,可帮助您将 Java 应用程序集成到 Windows 操作环境中。
These are both commercial products and although I haven't used them, I have used JProfiler for many years.
这些都是商业产品,虽然我没有使用过它们,但我已经使用 JProfiler 很多年了。
回答by Dielson Sales
回答by Petro Semeniuk
IzPackplugin for SBT might be useful.
SBT 的IzPack插件可能有用。
Even scala itself uses it: They use IzPack
甚至 Scala 本身也使用它:他们使用 IzPack

