jnius 1.1 import error

扶醉桌前 提交于 2019-12-03 20:13:11

Add the following to your Path environment variable (under "system variable"):

C:\Program Files (x86)\Java\jdk[YOUR JDK VERSION]\jre\bin\server

-or-

C:\Program Files (x86)\Java\jre[YOUR JDK VERSION]\bin\client

This was pointed out here, and it also points out you should set the JAVA_HOME "user variable":

C:\Program Files (x86)\Java\jdk[YOUR JDK VERSION]

Since jnius is a java wrapper, the "DLL" that fails to load may often be the "jvm.dll" located in that "server" folder.

Then again, there could be other DLL files missing. Ensure you have msvcr90 or msvcr100 and others provided by installing visual studio 2008 or 2010 redistributable. A more complete answer to your question can be found by downloading dependency walker and analyzing the required DLLs for jnius.pyd (I think I remember from personal experience it does require msvcr100 and msvcr90).

For Adopt OpenJDK use C:\Program Files\AdoptOpenJDK\jdk-8.0.212.04-hotspot\jre\bin\server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!