I'm not sure about my solution, but in my environment very important jdk version. I mean not all jdk version works with onnxruntime. In my environment: windows 11 and onnx 1.22, 1.21, 1.20 corectly works with jdk 17 and high (Only). If I try using jdk less 17 then pop up message like yours. If i want use jdk 11 I have to use onnxruntime 1.19.2 and less. For Ubuntu not checked.