Jump to content
  • 0

Failed to lookup symbol: VirtualAlloc2 Error occurred during initialization of VM ZGC requires Windows version 1803 or later


Lacerdaz

Question

Trying to host @ VPS 

image.png.9cc51f329b963a60504c8bb0fca7a6de.png

 

My StartServer64

@setlocal enableextensions
@cd /d "%~dp0"
SET PZ_CLASSPATH=java/istack-commons-runtime.jar;java/jassimp.jar;java/javacord-2.0.17-shaded.jar;java/javax.activation-api.jar;java/jaxb-api.jar;java/jaxb-runtime.jar;java/lwjgl.jar;java/lwjgl-natives-windows.jar;java/lwjgl-glfw.jar;java/lwjgl-glfw-natives-windows.jar;java/lwjgl-jemalloc.jar;java/lwjgl-jemalloc-natives-windows.jar;java/lwjgl-opengl.jar;java/lwjgl-opengl-natives-windows.jar;java/lwjgl_util.jar;java/sqlite-jdbc-3.27.2.1.jar;java/trove-3.0.3.jar;java/uncommons-maths-1.2.3.jar;java/
".\jre64\bin\java.exe" -Djava.awt.headless=true -Dzomboid.steam=1 -Dzomboid.znetlog=1 -XX:+UseZGC -XX:-CreateCoredumpOnCrash -XX:-OmitStackTraceInFastThrow -Xms2g -Xmx4g -Djava.library.path=natives/;natives/win64/;. -cp %PZ_CLASSPATH% zombie.network.GameServer -statistic 0
PAUSE

 

 

image.thumb.png.14123a842043222b606d88ba1254beaa.png

 

Any thoughts?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

2 hours ago, Beard said:

The error says what it means, that you are on an outdated Windows version and need the latest one to use the ZGC feature.
To fix this without updating, simply change the "-XX:+UseZGC" flag to "-XX:+UseG1GC"

Thank you very much for the fast support! 

Link to comment
Share on other sites

On 12/16/2021 at 5:01 PM, Beard said:

The error says what it means, that you are on an outdated Windows version and need the latest one to use the ZGC feature.
To fix this without updating, simply change the "-XX:+UseZGC" flag to "-XX:+UseG1GC"

how to change this flag you're talking about? i tried opening java.exe from the jre64\bin\ folder but it quickly crashes or something

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...