[JAVA] jdk8 다운로드, Konlpy jvm 에러 해결.
> from konlpy.tag import Kkma
> tokenizer = Kkma()
이러면 jvm 에러 계속 발생했는데...
No JVM shared library file (jvm.dll) found. Try setting up the JAVA_HOME environment variable properly
, line 91, in __init__
jvm.init_jvm(jvmpath, max_heap_size)
, line 55, in init_jvm
jvmpath = jvmpath or jpype.getDefaultJVMPath()
, line 74, in getDefaultJVMPath
return finder.get_jvm_path()
, line 212, in get_jvm_path
raise JVMNotFoundException("No JVM shared library file ({0}) "
jpype._jvmfinder.JVMNotFoundException: No JVM shared library file (jvm.dll) found. Try setting up the JAVA_HOME environment variable properly.
기존 java를 다 삭제하고. 다시 아래에서 다운받아서 설치.
jdk-8u271-windows-x62
JAVA_HOME도 다시 설정.
CLASSPATH - C:\Program Files\Java\jdk1.8.0_271\lib\tools.jar
JAVA_HOME - C:\Program Files\Java\jdk1.8.0_271\jre\bin\server
www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
www.oracle.com/java/technologies/javase-jre8-downloads.html
In [1]: from konlpy.tag import Kkma
In [2]: tokenizer = Kkma()
In [3]: tokenizer.morphs("카페에서의 여유 참 좋네요")
Out[3]: ['카페', '에서', '의', '여유', '참', '좋', '네요']
'프로그래밍 > App' 카테고리의 다른 글
MS Azure 사용안하는데 과금이 돼서 취소/환불 받기 (0) | 2020.12.22 |
---|---|
[NFC tag] NFC taging tool 적용하기 (0) | 2020.12.07 |
[콘솔] ConEmu - Windows Terminal : DOS 창, CMD창 (0) | 2020.11.26 |
카톡 오픈채팅 ‘방장봇’ 생긴다 (0) | 2020.11.13 |
googleapis/python-speech (0) | 2020.11.09 |