YatopiaMC / Yatopia

The Most Powerful and Feature Rich Minecraft Server Software!
https://yatopiamc.org/
464 stars 79 forks source link

"Unable to retrieve Instrumentation API to add Paper jar to classpath. If you're running paperclip without -jar then you also need to include the -javaagent:<paperclip_jar> JVM command line option." #444

Closed cobaltgit closed 3 years ago

cobaltgit commented 3 years ago

I'm trying to run Yatopia through the ServerJars updater and then it shows this error "Unable to retrieve Instrumentation API to add Paper jar to classpath. If you're running paperclip without -jar then you also need to include the -javaagent: JVM command line option."

Here's the output of java -version:

openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-post-Raspbian-1deb10u2)
OpenJDK Server VM (build 11.0.9.1+1-post-Raspbian-1deb10u2, mixed mode)

My JVM flags are as follows:

/usr/bin/java -server -Xms2G -Xmx2G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar serverjars-2.jar nogui

I'm running this on a Raspberry Pi 4 4GB model, is it anything to do with the architecture? If not then how can I resolve the issue?

cobaltgit commented 3 years ago

Full output of the server start command is as follows:

   _____                               __
  / ___/___  ______   _____  _____    / /___ ___________
  \__ \/ _ \/ ___/ | / / _ \/ ___/_  / / __ `/ ___/ ___/
 ___/ /  __/ /   | |/ /  __/ /  / /_/ / /_/ / /  (__  )
/____/\___/_/    |___/\___/_/   \____/\__,_/_/  /____/
ServerJars.com           Made with love by Songoda <3

ServerJars is starting...

The jar is up to date.

Launching yatopia-1.16.5.jar...
................................

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.songoda.serverjars.ServerJars (file:/home/pi/minecraft/serverjars-2.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of com.songoda.serverjars.ServerJars
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

===========================

Notice: Java has warned you that you are using a workaround if you want to get around this you can add the following arguments: '-Djava.system.class.loader=com.serverjars.updater.ServerJarsLoader'
e.g 'java -Djava.system.class.loader=com.serverjars.updater.ServerJarsLoader -jar serverjars.jar
'Unable to retrieve Instrumentation API to add Paper jar to classpath. If you're running paperclip without -jar then you also need to include the -javaagent:<paperclip_jar> JVM command line option.