Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Bug JRE autodownloaded via Ubuntu RM missing libattach.so resulting in UnsatisfiedLinkError

Joined
Jun 21, 2014
Messages
350
When the Spectre client automatically downloads a JRE due to not finding a pre-existing one it is missing the libattach.so file which is normally found in usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/amd64 .

This means that by default when RM is ran using the JRE it is downloaded with, it cannot attach to the RuneScape instance and results in a "could not initialize class sun.tools.attach.LinuxVirtualMachine" error when running bots and selecting an instance.

System: elementary OS 0.4.1 Loki (Built on "Ubuntu 16.04.3 LTS")
Java version: RM auto dled version is Oracle Java u122, the installation it works with is OpenJDK Java 8 u60

The problem can be solved by copying the libattach.so file from another installation to the installation in opt/runemate/jre/...
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
You very well may have just found the source of a long standing bug that some people tend to encounter...
 
When the Spectre client automatically downloads a JRE due to not finding a pre-existing one it is missing the libattach.so file which is normally found in usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/amd64 .

This means that by default when RM is ran using the JRE it is downloaded with, it cannot attach to the RuneScape instance and results in a "could not initialize class sun.tools.attach.LinuxVirtualMachine" error when running bots and selecting an instance.

System: elementary OS 0.4.1 Loki (Built on "Ubuntu 16.04.3 LTS")
Java version: RM auto dled version is Oracle Java u122, the installation it works with is OpenJDK Java 8 u60

The problem can be solved by copying the libattach.so file from another installation to the installation in opt/runemate/jre/...
Does it ONLY work with older OpenJDK versions like 8u60 or do the Oracle JDK's also work? If yes to the first question, is 8u60 the latest version you found that works? If yes to the second question do only older oracle JDK's work?
 
Joined
Jun 21, 2014
Messages
350
You very well may have just found the source of a long standing bug that some people tend to encounter...
 

Does it ONLY work with older OpenJDK versions like 8u60 or do the Oracle JDK's also work? If yes to the first question, is 8u60 the latest version you found that works? If yes to the second question do only older oracle JDK's work?

@Cloud

You can ignore what I said about JRE version, I was wrongly conflating JavaFX version with Java version.

Here's the version for the OpenJDK versions which I have that works.

[Debug] Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
[Debug] Java Version: 8u131 x64 (Oracle Corporation)

Here's the data for the RM downloaded JRE which was missing the libattach.so file.

[Debug] Java Home: /opt/runemate/jre
[Debug] Java Version: 8u121 x64 (Oracle Corporation)
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
@Cloud

You can ignore what I said about JRE version, I was wrongly conflating JavaFX version with Java version.

Here's the version for the OpenJDK versions which I have that works.

[Debug] Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
[Debug] Java Version: 8u131 x64 (Oracle Corporation)

Here's the data for the RM downloaded JRE which was missing the libattach.so file.

[Debug] Java Home: /opt/runemate/jre
[Debug] Java Version: 8u121 x64 (Oracle Corporation)
Can you pm me the missing files for oracle jdk 8u121 please (8u121, not 8u131) and confirm they work also.
 
Thanks for sending them to me.
 
Top