Replies: 1 comment 2 replies
-
TBH there are several pieces there, several of which I've never dealt with. Some observations - setting a DOTNET_ROOT environment variable is not a standard jpackage installer feature AFAIK. So, you could try doing this via customization of the Wix installer, or perhaps by setting the environment variable in your main method before telling the JavaFX app to launch. No idea if that would actually work, tho. I suspect that the answer to your problem may be to tweak how your JNA wrapper loads the native library (e.g. https://www.baeldung.com/java-jna-dynamic-libraries) to pull it in from the application path. Instead of relying on the DOTNET_ROOT environment variable, I would suggest looking a bit at the way the libraries are getting copied and installed by jpackage and then use that to help sort out step by step which paths to use with the JNA Load. |
Beta Was this translation helpful? Give feedback.
-
hi there! thank your for providing this nice tool.
i am currently developing a dot.net assembly that needs a certain dotnet-runtime. I made a JNA wrapper and an JavaFX App which works perfect when i set DOTNET_ROOT on windows via the system-varaible-setting-dialog.
i was wondering if it is posible to use javaOptions to achive this?
my application cfg-file looks like this:
_[Application]
app.name=javaFxApp
app.version=22.11.031338
app.runtime=$ROOTDIR\runtime
app.identifier=com.so.JDeskApp
app.classpath=$ROOTDIR\app\javaFxApp-1.0.1.jar;.....
app.mainclass=com.so.JDeskApp.MainApplication
[JavaOptions]
-DDOTNET_ROOT=$ROOTDIR/app/dotnetRuntime
[ArgOptions]_
This seems not to work for me. What i am missing?
Any hint would be very usefull. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions