简体   繁体   中英

java jvm 11 don't start

os: windows 10 java : 11.0.1

i setting Environmental variable

set JAVA_HOME=<null>

set CLASSPATH=<null>

set PATH='d:\java\jdk-11.0.1\bin

cmd runing

java -version

cmd runing

java -version

return this error:

 Error occurred during initialization of VM\njava.lang.IllegalArgumentException: Null charset name \n    at java.nio.charset.Charset.lookup(java.base/Charset.java:455)\n    at java.nio.charset.Charset.defaultCharset(java.base/Charset.java:608)\n    at java.lang.StringCoding.decode(java.base/StringCoding.java:316)\n    at java.lang.String.(java.base/String.java:592)\n    at java.lang.String.(java.base/String.java:614)\n    at java.lang.System.initProperties(java.base/Native Method)\n    at java.lang.System.initPhase1(java.base/System.java:1942)

i try

java -Dfile.encoding=UTF-8

same error

my jdk8 is ok

my jdk 11 is ok at company computer

what?

This problem can reproduce in simplified chinese Windows with gb18030 support package installed. I trace it with process monitor, saw the process end with some buffer overflow error, while loading font file named simsun gb18030(something like this, I don't remember clearly.) this problem exist at any version of hotspot jvm after JDK 11. but for j9 vm, there's no problem.

如果你使用ideaC-2020.3.win,试试jbr。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM