You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JVMNotFoundException Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_16476\2043015914.py in
1 from konlpy.tag import Kkma
----> 2 kkma = Kkma()
C:\ProgramData\Anaconda3\lib\site-packages\konlpy\tag_kkma.py in init(self, jvmpath, max_heap_size)
42 def init(self, jvmpath=None, max_heap_size=1024):
43 if not jpype.isJVMStarted():
---> 44 jvm.init_jvm(jvmpath, max_heap_size)
45
46 kkmaJavaPackage = jpype.JPackage('kr.lucypark.kkma')
C:\ProgramData\Anaconda3\lib\site-packages\konlpy\jvm.py in init_jvm(jvmpath, max_heap_size)
53 classpath = [f.format(*args) for f in folder_suffix]
54
---> 55 jvmpath = jvmpath or jpype.getDefaultJVMPath()
56
57 # NOTE: Temporary patch for Issue #76. Erase when possible.
C:\ProgramData\Anaconda3\lib\site-packages\jpype_jvmfinder.py in getDefaultJVMPath()
72 else:
73 finder = LinuxJVMFinder()
---> 74 return finder.get_jvm_path()
75
76
C:\ProgramData\Anaconda3\lib\site-packages\jpype_jvmfinder.py in get_jvm_path(self)
210 if jvm_notsupport_ext is not None:
211 raise jvm_notsupport_ext
--> 212 raise JVMNotFoundException("No JVM shared library file ({0}) "
213 "found. Try setting up the JAVA_HOME "
214 "environment variable properly."
JVMNotFoundException: No JVM shared library file (jvm.dll) found. Try setting up the JAVA_HOME environment variable properly.
제가 트라이 해본 방법은 하기와 같습니다.
path 설정 후 -> 재설치 : 동일 상황 발생
시스템 변수 / PATH 설정
. C:\Program Files\Java\jdk-19\bin\server 로 지정 : 그러나 동일 상황 발생
os.environ['JAVA_HOME'] = "C:\Program Files\Java\jdk-19\bin\server" 환경변수 설정
. 동일 상황 지속 발생
_jvmfinder : 코딩 수정
. 경로 : C:\ProgramData\Anaconda3\Lib\site-packages~pype
. 수정한 코드 : java_home 부분을 "C:\Program Files\Java\jdk-19\bin\server" 로 변경
def _get_from_java_home(self):
"""
Retrieves the Java library path according to the JAVA_HOME environment
variable
Returns:
The path to the JVM library, or None
"""
# Get the environment variable
java_home = os.getenv("C:\Program Files\Java\jdk-19\bin\server")
if java_home and os.path.exists("C:\Program Files\Java\jdk-19\bin\server"):
# Get the real installation path
java_home = os.path.realpath("C:\Program Files\Java\jdk-19\bin\server")
if not os.path.exists(java_home):
java_home = os.getenv("C:\Program Files\Java\jdk-19\bin\server")
# Look for the library file
return self.find_libjvm**("C:\Program Files\Java\jdk-19\bin\server")**
상기 방법들을 다 트라이 하였으나 모두 실패하여..도움을 청하고자 글 남깁니다 ㅠㅠ
6시간 정도 메달리는데 해결을 못하네요 ㅠㅠㅠㅠ
The text was updated successfully, but these errors were encountered:
from konlpy.tag import Kkma
kkma = Kkma()
아나콘다를 통해 쥬피터노트로 위를 돌렸으나 하기와 같이 오류 메시지가 노출 되었습니다.
[ 오류 메시지 ]
JVMNotFoundException Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_16476\2043015914.py in
1 from konlpy.tag import Kkma
----> 2 kkma = Kkma()
C:\ProgramData\Anaconda3\lib\site-packages\konlpy\tag_kkma.py in init(self, jvmpath, max_heap_size)
42 def init(self, jvmpath=None, max_heap_size=1024):
43 if not jpype.isJVMStarted():
---> 44 jvm.init_jvm(jvmpath, max_heap_size)
45
46 kkmaJavaPackage = jpype.JPackage('kr.lucypark.kkma')
C:\ProgramData\Anaconda3\lib\site-packages\konlpy\jvm.py in init_jvm(jvmpath, max_heap_size)
53 classpath = [f.format(*args) for f in folder_suffix]
54
---> 55 jvmpath = jvmpath or jpype.getDefaultJVMPath()
56
57 # NOTE: Temporary patch for Issue #76. Erase when possible.
C:\ProgramData\Anaconda3\lib\site-packages\jpype_jvmfinder.py in getDefaultJVMPath()
72 else:
73 finder = LinuxJVMFinder()
---> 74 return finder.get_jvm_path()
75
76
C:\ProgramData\Anaconda3\lib\site-packages\jpype_jvmfinder.py in get_jvm_path(self)
210 if jvm_notsupport_ext is not None:
211 raise jvm_notsupport_ext
--> 212 raise JVMNotFoundException("No JVM shared library file ({0}) "
213 "found. Try setting up the JAVA_HOME "
214 "environment variable properly."
JVMNotFoundException: No JVM shared library file (jvm.dll) found. Try setting up the JAVA_HOME environment variable properly.
제가 트라이 해본 방법은 하기와 같습니다.
path 설정 후 -> 재설치 : 동일 상황 발생
시스템 변수 / PATH 설정
. C:\Program Files\Java\jdk-19\bin\server 로 지정 : 그러나 동일 상황 발생
os.environ['JAVA_HOME'] = "C:\Program Files\Java\jdk-19\bin\server" 환경변수 설정
. 동일 상황 지속 발생
_jvmfinder : 코딩 수정
. 경로 : C:\ProgramData\Anaconda3\Lib\site-packages~pype
. 수정한 코드 : java_home 부분을 "C:\Program Files\Java\jdk-19\bin\server" 로 변경
def _get_from_java_home(self):
"""
Retrieves the Java library path according to the JAVA_HOME environment
variable
상기 방법들을 다 트라이 하였으나 모두 실패하여..도움을 청하고자 글 남깁니다 ㅠㅠ
6시간 정도 메달리는데 해결을 못하네요 ㅠㅠㅠㅠ
The text was updated successfully, but these errors were encountered: