gluonhq / gluonfx-gradle-plugin

Plugin that simplifies using Gluon Client for Java/JavaFX gradle projects
BSD 3-Clause "New" or "Revised" License
100 stars 22 forks source link

nativeRunAgent is not secussfully run in my project! #188

Closed ctoabidmaqbool1 closed 7 months ago

ctoabidmaqbool1 commented 7 months ago

Hi! I am trying to use iTextPDF 5 and ICEPdf Viewer in my project, but when I try to run gradlew nativeRunAgent The build not secess-full run, I have to forcefully close my tasks.

And \src\main\resources\META-INF\native-image\.lock file remains there and I have to delete it manuely!

Also my files not updated in \src\main\resources\META-INF\native-image\ as nativeRunAgent tasks was not secessfully build and have to be forcely closed!

Please, how can I debug and fix the issue?

I am not sure it's GluonFx-Gradle-Plugin issue or ICEPdf viewer issue!

ctoabidmaqbool1 commented 7 months ago

I have created sample project to demonistrate the above issue!

https://github.com/ctoabidmaqbool1/iTextPdf-5-And-ICEpdf-Viewer-Test/tree/gluon-or-graalvm-issue

image

When Generate PDF and Open in Viewer button is clicked PDF Viewer is opened, as shown:

image

Aftering clicking both pdf viewer and state, nativeRunAgent task not secedded!

ctoabidmaqbool1 commented 7 months ago

Fixed, actually problem is with PDF-Viewer which was not closing propperly.

Fixed see comment: https://github.com/pcorless/icepdf/issues/350