[ https://issues.apache.org/jira/browse/PYLUCENE-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17492096#comment-17492096 ]
Petrus Hyvönen commented on PYLUCENE-62: ---------------------------------------- Did an attempt to use the add_jvm_dll_directory_to_path() approach, seems to work fine in the test environments I have. I took the order of picking up java from: JCC_JDK, JAVA_HOME and then registry. As it is now, the python3.8+ on windows does not care about the PATH at all. It could be added to scrape around in PATH as well, but hesitant to have too many places for it? Also added windows.py to the modules to be embedded to avoid the need of also installing JCC on the target package. > Not finding jvm.dll on windows > ------------------------------ > > Key: PYLUCENE-62 > URL: https://issues.apache.org/jira/browse/PYLUCENE-62 > Project: PyLucene > Issue Type: Bug > Reporter: Petrus Hyvönen > Priority: Major > Attachments: add_dll_win-1.patch, add_dll_win.patch > > > On recent versions of Python, the dll's seems to require to be added via the > os.add_dll_directory() function. > > Apparently something changed in Python 3.8 regarding this, "Python 3.8 > changed the DLL resolution order > [https://docs.python.org/3/whatsnew/3.8.html#bpo-36085-whatsnew]" > Thanks to: > [https://github.com/conda-forge/python-feedstock/issues/552] > > Proposed fix in a patch below. It can likely be rewritten in some more neat > way. :) -- This message was sent by Atlassian Jira (v8.20.1#820001)