简体   繁体   English

部署javaFx应用程序

[英]Deploying a javaFx Application

I am using Sbt, with the plugins Sbt Assembly. 我正在使用Sbt,以及Sbt Assembly插件。 What it does is that it create a fat jar that contain everything my project depends which in this case include, Jfxrt.jar. 它的作用是创建一个胖jar,其中包含我的项目所依赖的所有内容,在本例中包括Jfxrt.jar。

Given that i want my app to run on windows as well, i was wondering if that was a problem. 考虑到我也希望我的应用程序也能在Windows上运行,我想知道这是否是一个问题。 Does the Jfxrt.jar for OsX and windows are the same ? 用于OsX的Jfxrt.jar和Windows是否相同?

The question could be extended to other platform of course. 这个问题当然可以扩展到其他平台。

Yes that is a problem, on win32 javafx uses directx and on other platforms OpenGL. 是的,这是一个问题,在win32上,javafx使用Directx,在其他平台上使用OpenGL。 Beside that the glass toolkit is different foreach platform. 此外,玻璃工具箱对于每个平台都是不同的。 Do not package javafx with your application you would have never thought of this for a swing app so why do you do this for JavaFX. 不要将Javafx与您的应用程序打包在一起,而您对于Swing应用程序从来没有想到过这一点,所以为什么要对JavaFX这样做。

So no the jar is different for each platform 所以每个平台的jar都不一样

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

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