Packaging JavaFX Applications using Gradle

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

ความคิดเห็น • 25

  • @drewdevinproductions5173
    @drewdevinproductions5173 3 ปีที่แล้ว +1

    Thank you I wasted two hours trying to fix errors and you just helped me out in 5

  • @leonardot.s.4316
    @leonardot.s.4316 3 ปีที่แล้ว +1

    Thank you so much Dr. Gestwicki! I'm venturing into java development and was researching for some days now on how I could generate a standalone executable of my Gradle/JavaFx Application, your solution worked flawlessly.

    • @PaulGestwicki
      @PaulGestwicki  3 ปีที่แล้ว

      You're welcome! I'm glad it helped.

  • @Eiseskälte
    @Eiseskälte 2 ปีที่แล้ว +3

    Tried hours to get it working, but no success. I am fed up with this crap.
    Execution failed for task ':jpackageImage'.
    > Process 'command '/Library/Java/JavaVirtualMachines/jdk-17.0.2.jdk/Contents/Home/bin/jpackage'' finished with non-zero exit value 1
    JavaFX is nice as long you code. When it comes to deployment its extremely horrible.
    This goes for years. I code for Android since 2013, even back in these days it was dead easy to build an apk.

  • @kevinalanmartinezvirgen1120
    @kevinalanmartinezvirgen1120 3 ปีที่แล้ว +1

    Thank you so much, that plugin made the deal

  • @L0615T1C
    @L0615T1C 3 ปีที่แล้ว +1

    my project gets packaged properly but I always get the error "Invalid or unsupported type: [exe]"

    • @PaulGestwicki
      @PaulGestwicki  3 ปีที่แล้ว +1

      Sounds like you're on Windows, so make sure you have the Wix Toolset installed.

  • @tomKickstart
    @tomKickstart 10 หลายเดือนก่อน

    Hi Paul Gestwicki
    It's a nice explanation, but could you please make the same video using Maven? It will be very helpful for all who are using Maven.

    • @PaulGestwicki
      @PaulGestwicki  10 หลายเดือนก่อน +1

      I'm afraid that's out of scope for me. I haven't used Maven in a couple of years.

  • @juang.7837
    @juang.7837 3 ปีที่แล้ว

    Than you for making this video, can you say what JDK you're using?

    • @PaulGestwicki
      @PaulGestwicki  3 ปีที่แล้ว

      You're welcome! I'm pretty sure it was JDK 16 at the time.

    • @juang.7837
      @juang.7837 3 ปีที่แล้ว

      @@PaulGestwicki I made it work following the JavaFx official documentation, meaning changing to Gradle 6.3 in the gradle-wrapper.properties and using the oracle jdk14 so now I have a "dmg" file in MacOs, but now I can not build an "exe" file in windows, I'm not sure how wix is to be used here and have already spent all day trying to figure it out and didn't have any luck, if you can give me some clue I would really appreciate that

    • @PaulGestwicki
      @PaulGestwicki  3 ปีที่แล้ว

      @@juang.7837 I'm afraid that's more deep into it than I am right now. It is frustrating how Gradle seems to be both a blessing and a constantly moving target! Good luck, and I hope you'll post an update if you sort it out.

  • @oguzhantopaloglu9442
    @oguzhantopaloglu9442 3 ปีที่แล้ว

    It was built succesfully but now I can't open the app when I click on the .exe it created?

    • @oguzhantopaloglu9442
      @oguzhantopaloglu9442 3 ปีที่แล้ว

      and it still shows in the task manager as running

    • @PaulGestwicki
      @PaulGestwicki  3 ปีที่แล้ว +1

      Sorry, it's not really possible for me to help with that from here. There are too many ways it can go wrong. Hopefully you'll get it sorted out and post back here for future readers :)

    • @oguzhantopaloglu9442
      @oguzhantopaloglu9442 3 ปีที่แล้ว

      @@PaulGestwicki Sir please help me I can't find any ways to export my application I literally spent all of my day trying everything...
      I just want to export my appliication, .jar or .exe doesnt matter to me
      I just want to export it and being able to run it with just double clicking on it
      Everybody uses command line to enter VM options but i dont want that...

    • @PaulGestwicki
      @PaulGestwicki  3 ปีที่แล้ว

      @@oguzhantopaloglu9442 I sympathize, but I'm afraid there's nothing I can do except hope it's covered in the video. Best of luck!

  • @niampahamidou8931
    @niampahamidou8931 3 ปีที่แล้ว +1

    Thanks a lot for this nice Job

  • @IamAWESOME3980
    @IamAWESOME3980 2 ปีที่แล้ว +1

    java is supposed to be cross-platform but this sure is a huge headache.

    • @PaulGestwicki
      @PaulGestwicki  2 ปีที่แล้ว

      I admit, I miss the days of JavaWebStart and applets!