Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
901 views
in Technique[技术] by (71.8m points)

linux - How do I troubleshoot "Inconsistency detected: dl-lookup.c: 111" (Java Result 127) error?

I'm currently trying to build a Java project using Maven for a game I'm working on.

I think I'm using Java 8 OpenJDK (1.8.0_211) on a Ubuntu 18.04 LTS distribution.

The related question debugging ld, "Inconsistency detected by ld.so" was not able to help me. The Java Error Code 127 suggests that a resource cannot be found on my CLASSPATH(?)

The error, formatted for readability:

[java] Inconsistency detected by ld.so: dl-lookup.c: 111: check_match: 
    Assertion `version->filename == NULL || 
    ! _dl_name_match_p (version->filename, map)' failed!
[java] Java Result: 127
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Downgrade to OpenJDK 8

I had the same problem in Xubuntu 18.04 with Eclipse 2018-12 (4.10.0). It was working fine, but probably some update in the system (or to OpenJDK specifically) started this problem. In addition Gradle Tasks weren't showing up in the Gradle Window.

I solved the issue removing packages: default-jre, default-jdk, default-jre-headless, default-jdk-headless, all of them are "pointing at" openjdk-11.

Then I installed packages: openjdk-8-jre, openjdk-8-jdk, openjdk-8-jre-headless and openjdk-8-jdk-headless.

Change eclipse.ini's vm section to: -vm /usr/lib/jvm/java-8-openjdk-amd64/bin

And now everything is working fine, and Gradle tasks are showing again. To clarify, I'm also using LibGDX.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...