Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gluonfx:nativeRunAgent 1.0.14 failed. #157

Open
RGuyard opened this issue Jul 8, 2022 · 2 comments
Open

gluonfx:nativeRunAgent 1.0.14 failed. #157

RGuyard opened this issue Jul 8, 2022 · 2 comments

Comments

@RGuyard
Copy link

RGuyard commented Jul 8, 2022

Hello,

When I try to natively run with gluonfx-gradle-plugin on exemple project :
https://github.com/gluonhq/gluon-samples/tree/master/HelloFXML
NativeRunAgent can't generate all file config. After run I obtain only one file : META-INF.native-image.filter-file.json
Project can't run because reflectionList config wasn't generate at all.

Same projet, and same config with gluon-maven-plugin runAgent create much more file configuration and project nativeBuild-nativeRun correctly without manual configuration.

Version :


    id 'org.openjfx.javafxplugin' version '0.0.13'
    id 'com.gluonhq.gluonfx-gradle-plugin' version '1.0.14'
javafx {
 version = '18.0.1'
 modules = ['javafx.controls', 'javafx.fxml', 'javafx.graphics', 'javafx.swing']
}
gluonfx {
    target = "$target"
    verbose = true
    enableSwRendering = false
}
@jperedadnr
Copy link
Collaborator

Hmm, can you try adding a module-info descriptor?
It looks like the nativeRunAgente task of the gradle plugin fails for non-modular applications.

@abhinayagarwal It seems that with non-modular projects, the JavaFX plugin overrides the JVM arguments and therefore it is failing to add the -agentlib string which explains why there are no files under META-INF/native-agent.

@maxt
Copy link

maxt commented Aug 12, 2022

Hello. I have module-info descriptor and it doesn't work as well as described by @RGuyard.
Tried with
'org.openjfx:javafx-plugin:0.0.13' and
"com.gluonhq:gluonfx-gradle-plugin:1.0.15"

Same time 'nativeBuild' works perfectly well and no problems there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants