WL-FunctionCompile-CI-Template icon indicating copy to clipboard operation
WL-FunctionCompile-CI-Template copied to clipboard

How can I use this for JLink?

Open holyjak opened this issue 7 months ago • 0 comments

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!

holyjak avatar Jul 01 '24 14:07 holyjak