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

nativeRunAgent Task failing #182

Closed
UtilFunction opened this issue Sep 21, 2023 · 2 comments · Fixed by #189
Closed

nativeRunAgent Task failing #182

UtilFunction opened this issue Sep 21, 2023 · 2 comments · Fixed by #189

Comments

@UtilFunction
Copy link

UtilFunction commented Sep 21, 2023

Problem:
Running ./gradlew nativeRunAgent results in an error:
Error creating Substrate Dispatcher: java.lang.NullPointerException: Main class name is required.

Main class already defined in the application block

application {
    mainClass = 'fx.App'
}

Adding mainClassName = 'fx.App' results in an error as well:
RunAgent failure: org.gradle.api.internal.provider.AbstractProperty$PropertyQueryException: Failed to calculate the value of task ':app:run' property 'javaLauncher'.

Sample Project

Environment:

  • Java(TM) SE Runtime Environment Oracle GraalVM 21+35.1 (build 21+35-jvmci-23.1-b15)
  • Gradle 8.4-rc-1
@SabujXi
Copy link

SabujXi commented Sep 23, 2023

This gralde plugin took two days and nights of sleep away. Application is fine, running fine but no native build, compile link, agent things were working.

The biggest pain: NO useful error message.

After hours and hours of debugging and sleepless night, dizzy days here is the result:
The gradle plugin from gluon is "broken".

Solution: use the maven plugin.

@UtilFunction
Copy link
Author

Solution: use the maven plugin.

Agree. It's not only the gluonfx plugin but also the javafx gradle plugin that seems to be doing werid things as described here.

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

Successfully merging a pull request may close this issue.

2 participants