Wow, thank you so much for this tutorial on JavaFX and JPackage! I've been looking for this info for several days. I was just redirected to JPackageScriptFX all the time, and I felt I was in over my head. But you just explained what I need to do, and it helped me understand the JPackage documentation as well. Now I just need to modify your program options a little and I can get it to work on Linux and Mac, and I can finally release cross-platform applications.
@Ken-oh5yh
2 жыл бұрын
Glad it helped!
@fahrezyman
Жыл бұрын
Hello , I tried your tutorial and it's working on converting to .exe but when I try to run the exe file it said "Failed to launch JVM" . can you please help what's going on? Thank you
@blenddynamics8134
2 жыл бұрын
Ken, Thank you for this video; it helped me immensely. This is the only tutorial I could find that describes what should be in the input directory. A few nits: (a) If your main jar (JavaFXHelloWorld.jar in this case) has a META-INF/MANIFEST.MF file that declares the main class, then I don't think you need to use the --main-class option on the jpackage command line (but it doesn't hurt). (b) You specified the input directory as C:\Users\Ken\IdeaProjects\JavaFXHelloWorld\out\artifacts\JavaFXHelloWorld_jar, so I think you inadvertently included App-1.0.exe and App-2.0.msi in My App-2.0.msi. This doesn't have any effect on the program execution; but it does make the resulting output larger.
@Ken-oh5yh
2 жыл бұрын
You are right for (a), but I would like to show you how to use --main-class option. Many of us still does understand how MANIFEST.MF work. You are right for (b), I should have mentioned it during my video recording. It seems to me that I have continue recorded one after another Jpackage options then end up with several JavaFX apps in the same directory. Thank you for your comments.
@joaquinmartin9540
2 жыл бұрын
🎅 Merry Christmas
@merapal
Жыл бұрын
Hello Ken, I have core java windows application using Swing and AWT component, I haven`t used any kind of JavaFX Components. So how can I create native "app-image" of my application using JPackage?.
@niharprabhu3604
Жыл бұрын
Hi ken, can i use similar way to generate exe for my java swing project?
@denyspisotskiy75
Жыл бұрын
thanks a lot, great video!
@siavashnourmohammadi9189
Жыл бұрын
Thank you a lot ❤
@thanhnguyenuc2222
2 жыл бұрын
You save my life bro, thanks a lots
@OsRageh
2 жыл бұрын
I get this error ObjectNotFound: (jpackage:String) why?
@catzilla0w0
Жыл бұрын
Hi Ken, Does the artifact has to be runnable? I mean it has to run when I double click on it in Explorer?
@Ken-oh5yh
Жыл бұрын
Yes, the artifact must be runnable when you double click on it.
@catzilla0w0
Жыл бұрын
@Ken Hi Ken,, Thank you for the answer. Recently, I'm having problems with that. May, I ask your opinion, I posted on StackOverflow, with question ID: 75126162
@bobsonssauro
11 ай бұрын
Can not find WiX tools (light.exe, candle.exe)
@Ken-oh5yh
11 ай бұрын
Please install WiX Toolset v3.11.2 or later, It is available from wixtoolset.org/releases/
@juang.7837
2 жыл бұрын
Thank you for this christmas gift, its awesome. Can you give me some clue of how to achieve this if I'm using gradle.
@Ken-oh5yh
2 жыл бұрын
I am not familiar with Gradle. Have you tried this official tutorial? Working with Gradle in IntelliJ IDEA kzitem.info/news/bejne/l4xsrWeIsqp2gKA
@juang.7837
2 жыл бұрын
@@Ken-oh5yh Yes I did and my Gradle is already set up, I'm just trying to generate a .exe using package but I guess what I'm trying to know is how wixtoolset is involved in the process of deploying/packaging a java app
@hidayahtullah879
Жыл бұрын
110mb of hello world..
@Ken-oh5yh
Жыл бұрын
Yes, it is. It comes with runtime so that you could run it.
@elron2010
Жыл бұрын
ahahahahahaah, 110 megabytes for program hello world, nice tutorial bro
Пікірлер: 23