WL-FunctionCompile-CI-Template
WL-FunctionCompile-CI-Template copied to clipboard
How can I use this for JLink?
Hello!
I have a program using JLink and would like to use GitHub Action to test it. But I struggle to get Wolfram Engine working. I have followed the instructions here and do set the WOLFRAMSCRIPT_ENTITLEMENTID
env var. Running e.g. wolframscript -c 'SystemInformation["Kernel","InstallationDirectory"]'
works fine, but running the JLink program does not - it fails with MathLinkException: MathLink connection was lost.
Does Wolfram Engine support the WOLFRAMSCRIPT_ENTITLEMENTID? Is there some special way to pass it through when starting a jlink connection via
MathLinkFactory.createKernelLink({"-linkmode", "launch", "-linkname",
"\"//usr/local/Wolfram/WolframEngine/13.3/Executables/MathKernel\" -mathlink"})
.discardAnswer();
? Thank you!