I commented about this in detail under the config jre_order on this site (https://www.jar2exe.com/createdexe/config/jre_order). I found a couple ugly workarounds but I think the root issue is that Jar2exe is not calling SetDllDirectory with the jre\bin folder before trying to load the jvm.dll. I've experimented *A LOT* and the only two solutions I can find until the product is updated is to compile into and run my EXE from my bundled jre\bin folder and set the jvmdll to ./server/jvm.dll OR to modify the PATH before my EXE runs. Neither of these are good solutions to me.
I commented about this in detail under the config jre_order on this site (https://www.jar2exe.com/createdexe/config/jre_order). I found a couple ugly workarounds but I think the root issue is that Jar2exe is not calling SetDllDirectory with the jre\bin folder before trying to load the jvm.dll. I've experimented *A LOT* and the only two solutions I can find until the product is updated is to compile into and run my EXE from my bundled jre\bin folder and set the jvmdll to ./server/jvm.dll OR to modify the PATH before my EXE runs. Neither of these are good solutions to me.