Accessing JVM from python

后端 未结 4 924
名媛妹妹
名媛妹妹 2020-12-15 22:21
>>> import boilerpipe
Traceback (most recent call last):
  File \"\", line 1, in 
  File \"C:\\Anaconda\\lib\\site-packages\\boil         


        
4条回答
  •  青春惊慌失措
    2020-12-15 23:09

    Check Please !

    1. Give a true path ("C:\\Program Files\\Java\\jre7\\bin\client\\jvm.dll")
    2. Check all 32 or 64 bit (my offer always use 32bit Anaconda,JRE7,Python etc.)
    3. Install pywin32 (of course python2.7.9)
    4. Give permission to jvm.dll(can run)
    5. After all is ok, try: import ctypes ctypes.CDLL('C:\\Program Files\\Java\\jre7\\bin\\client\\jvm.dll')

    ***Maybe can't throw the hook of some java versions i used jre-7u55-windows-i586.exe

    i hope helpful ! Best regards !

    Works on wine(no bug):

提交回复
热议问题