RuneMate / Issues

Client and API Issue tracking. See README for more information.
8 stars 0 forks source link

UnsatisfiedLinkError on Linux / Include libattach.so in the included JRE #25

Open pattontim opened 5 years ago

pattontim commented 5 years ago

Please describe the bug

Previous thread: https://www.runemate.com/community/threads/jre-autodownloaded-via-ubuntu-rm-missing-libattach-so-resulting-in-unsatisfiedlinkerror.13922/

On certain systems, pointing IntelliJ to run the client via the auto-downloaded JRE in /opt/runemate results in a UnsatisfiedLink error as a result of missing libattach.so dependencies when running any bot in SDK mode.

Describe the solution you'd like Users should be able to use the autodownloaded JRE to avoid having to install another JDK simultaneously. libattach.so can found in jvm//jre/lib/amd64/ and placed in /opt/runemate/jre/lib/amd64/ to fix the error.

Describe alternatives you've considered

Additional context

ccarpenter04 commented 5 years ago

It's because libattach.so is not part of the standard JRE and only the JDK. We distribute one for windows that matches the one distributed with the JDK equivalent version of the official windows game clients JRE, so preferably we'd distribute one from JDK 7u25 for both architectures. Is that something you could help arrange acquiring @pattontim

pattontim commented 5 years ago

@ccarpenter04

JDK 7u25 64 bit libattach.so

JDK 7u25 32 bit libattach.so

The latter goes in /jdk1.7.0_25/jre/lib/i386/ and the former as previously mentioned.

ccarpenter04 commented 5 years ago

@pattontim thanks for sending the files, I'll find a way to verify their integrity and then we can start packaging them with the client similar to how we handle windows needing an extra library in the runescape jvm.