PaperMC / Paperclip

Bootstrap utility and launcher for the Paper Minecraft server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

ReleaseException opened this issue · comments

Hi,
i always get this Warning when im starting my Server
on Deb10
and java11
"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."

can someone help me please

please include more info.
how do you start the server?

i use the server in a cloud system
so with executing the jar i guess

well, then its a bug in said "cloud" system, bring it up to them, they will know what to do with the error message

It's not a bug in a cloud system. JVM distribution is allowed not to have instrumentation API available. So paperclip won't work in such environments.
Launch paperclip locally, so it builds a paper jar (located in cache subdirectory) and use that instead.

Are you sure? I looked at the source for a second and saw they use the instrumentation api to add their own Javaagent and stuff so i wouldn't be surprised if they broke stuff

commented

When people make their own JVM images, the instrumentation API is not required no. The “minimal” image does not include it for example.

There are some mailing list threads about this but it was never changed. Hence my other issue on this repo to provide more info when it happens.

http://mail.openjdk.java.net/pipermail/jigsaw-dev/2017-May/012702.html

commented

I don’t know that there’s any real fixing this as far as paperclip is concerned either.

We can provide the user and ourselves with more information and guide them to a more complete (read: better) image, but not like we can correct it.

Original author, if you need more assistance with this please seek support on the forums or discord. You can either run it locally and take the cached patch jar and use that remotely or you need a different distribution of Java.

and how can i fix this?

Original author, if you need more assistance with this please seek support on the forums or discord. You can either run it locally and take the cached patch jar and use that remotely or you need a different distribution of Java.

So i can run the jar in a local server and then put the jar from the server after starting?

from the cache folder, yes