Accessing JVM from python

后端 未结 4 925
名媛妹妹
名媛妹妹 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 22:53

    Answering because I don't have enough rep for commenting; Try using raw strings instead of the normal ones allowing "\x" escapes. Try:

    >>> ctypes.CDLL(r'C:\Program Files (x86)\Java\jre1.8.0_40\bin\client\jvm.dll')
    

    Because the "\..." parts of the string could very well be escapes.

提交回复
热议问题