-
Notifications
You must be signed in to change notification settings - Fork 59
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
JVMArgs (and potentially other options) ignored when running via jfxRun #59
Comments
Can you check what will generated inside the |
No, .cfg file has been created. |
|
When I run jfxNative it create .cfg and works well.
But with jfxRun, it doesnt work. |
:D i think i get it now ... this is not how that feature works ... that options are not appended while calling jfxRun |
This is half bug and other half feature, because "jfxRun" was only ment as some "stupid shorthand" for running the application. Thanks for finding this ;) and using the plugin |
Hi @marckaraujo , can you try to add your parameters to How do you think about this, and is |
Its doesnt work for me, because tapiki need to launch with jvmArgs since it will monitor the application and send crash logs, of course that the most critical part is when you send the application to real users, this feature just help for local debug. The software in question is https://www.overops.com/ |
Have you tried this configuration? jfx{
// used for native launchers
jvmArgs = [
'-agentlib:TakipiAgent'
]
// used for development via jfxRun-task
runJavaParameter = '-agentlib:TakipiAgent'
} |
I am not using this software anymore, so I cant make the test again, sorry. You can close if you want. Thanks anyway. |
Possibly this should be a separate issue but I believe this underlying problem affects integration with IntelliJ IDEA. When I tell IDEA to run with Is this likely? If so, it would be great to have a fix for this issue. Alternatively, can you suggest a way to debug JavaFX apps with your plugin and IDAE? |
@MartinEden the task The |
@MartinEden Have you find a way to pass JVM args when debugging with IDE using this gradle plugin? |
I've forgotten some of what was going on for me here but: I think I thought that the only way to run a Kotlin JavaFX app from IDEA was using the Gradle task. I think I then later found a way to directly invoke the debugger on my code without having to use |
Hey @FibreFoX ,
Thanks for the help with the last issue, got it working, not a problem with your plugin.
I am using JVMArgs like this:
jvmArgs = ["-agentlib:TakipiAgent"]
But it doesnt work.
If I run
java -agentlib:TakipiAgent -jar project.jar
in prompt it works.The text was updated successfully, but these errors were encountered: