Closed imkhairulikhwan closed 2 years ago
I noticed the issues always happens when I create .NET Core Web API project, but this issue didn't happen in console application
Originally, installing the J2NET Runtime Nuget package installs the Java runtime in the same path as the executable. However, the Web Core API approach doesn't seem to properly read the relative path to the Java runtime.
We will check the issue. Thanks you!
Noted on that, thank you!
May I know if there's a workaround for this? Is it possible to copy the Java runtime manually to the same path as executable?
That's right. The logic to find the Java Runtime path is here.
First, check the execution path while running the Web API. Then copy the contents of J2NET's "runtimes" folder to that execution path and it should work.
Thank you! We managed to execute connection.Open() method now after did the above steps. But, it seems we need to copy the .dll files as well apart from "runtimes" folder else it didn't work:
谢谢你!完成上述步骤后,我们现在设法执行了 connection.Open() 方法。但是,除了“运行时”文件夹之外,我们似乎还需要复制 .dll 文件,否则它不起作用:
I also encountered the same problem. I am grateful if you can provide a solution
Hi! I tried to integrate JDBC.NET to my .NET Core 6 application. However, after following the steps in Getting Started, I ran the sample codes and after hitting connection.Open(), I received the above error.
The full message would be "j2net.runtime could not be found. please check if the runtime is installed for your platform."
I have double-checked in the config as well and it seems fine.
Worth to take note is I upgraded the version from .NET Core 2.1 to 6 prior to integrating the code.
Thank you!