无法运行 Minecraft...是 GLX 问题吗?

无法运行 Minecraft...是 GLX 问题吗?

^ 那。

Error Report:
Time: 5/26/13 8:06 PM
Description: Failed to start game


org.lwjgl.LWJGLException: Could not init GLX
    at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)
    at org.lwjgl.opengl.LinuxDisplayPeerInfo.<init>(LinuxDisplayPeerInfo.java:52)
    at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:684)
    at org.lwjgl.opengl.Display.create(Display.java:854)
    at org.lwjgl.opengl.Display.create(Display.java:784)
    at org.lwjgl.opengl.Display.create(Display.java:765)
    at net.minecraft.client.Minecraft.a(SourceFile:235)
    at avv.a(SourceFile:56)
    at net.minecraft.client.Minecraft.run(SourceFile:507)
    at java.lang.Thread.run(Thread.java:722)

该错误、其代码路径和所有已知细节的详细演练如下:


-- System Details --
Details:
    Minecraft Version: 1.5.2
    Operating System: Linux (amd64) version 3.5.0-31-generic
    Java Version: 1.7.0_21, Oracle Corporation
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 23182920 bytes (22 MB) / 58785792 bytes (56 MB) up to 872415232 bytes (832 MB)
    JVM Flags: 0 total; 
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Suspicious classes: No suspicious classes found.
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    LWJGL: 2.4.2
    OpenGL: ~~ERROR~~ NullPointerException: null
    Is Modded: Probably not. Jar signature remains and client brand is untouched.
    Type: Client (map_client.txt)
    Texture Pack: Default
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

请帮忙?

答案1

我的世界

安装 Sun Java

下载32 位或 64 位 Linux“压缩二进制文件” - 它具有“.tar.gz”文件扩展名,并将其解压缩

tar -xvf jre-7-linux-i586.tar.gz

JRE 7 软件包已解压到 ./jre1.7.0 目录中。现在将 JRE 7 目录移动到/usr/lib

sudo mv ./jre1.7.0* /usr/lib/jvm/jre1.7.0

然后运行以下命令获取当前安装的 Java 替代方案列表

sudo update-alternatives --config java

您将获得以下输出:

There are 2 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
————————————————————
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode

Press enter to keep the current choice[*], or type selection number:

记住最后一个数字,然后按回车键退出此实用程序,即在此示例中记住该数字2

如果只显示一个选项,则记住数字0

sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.7.0/bin/java 3

这会将您新的 JRE 7 安装添加到备选列表中,即使用记住的数字 + 1,即上例中的 3。现在配置 java 以使用 Oracle Java JRE

sudo update-alternatives --config java

您将看到类似下面的输出 - 选择 jre1.7.0 的数量,即3

There are 3 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
————————————————————
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode
3 /usr/lib/jvm/jre1.7.0/jre/bin/java 3 manual mode

Press enter to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/lib/jvm/jre1.7.0/jre/bin/java to provide /usr/bin/java (java) in manual mode.

注意:如果之前没有安装 Java,那么新的 JRE 将是默认的,您将不会看到上述内容。

检查新安装的 JRE 7 的版本:

java -version

应该产生

java version “1.7.0”
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode)

更新 LWJGL(如果仍有问题)

  1. 下载陆王金陵
  2. 提取文件
  3. 地方。所以文件〜/ .minecraft / bin / natives /

相关内容