PaperMC / Paperclip

Bootstrap utility and launcher for the Paper Minecraft server
MIT License
120 stars 51 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. #34

Closed ReleaseException closed 3 years ago

ReleaseException commented 3 years ago

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: JVM command line option."

can someone help me please

MiniDigger commented 3 years ago

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

ReleaseException commented 3 years ago

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

MiniDigger commented 3 years ago

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

Shevchik commented 3 years ago

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.

MiniDigger commented 3 years ago

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

zachbr commented 3 years ago

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

zachbr commented 3 years ago

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.

ReleaseException commented 3 years ago

and how can i fix this?

Proximyst commented 3 years ago

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.

ReleaseException commented 3 years ago

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

electronicboy commented 3 years ago

from the cache folder, yes