Minecraft 和 Java 的问题

Minecraft 和 Java 的问题

我喜欢玩 Minecraft。但最近我只能打开低于 1.7.2 版本的 Minecraft。当我启动 1.7.2 时,Minecraft 没有显示我必须升级卡。我的 OpenGL 版本是 2.1 Mesa 10.1.3,OpenGL ES 是 2.0 Mesa 10.1.3。这似乎不是卡或任何硬件的问题(可能是因为我将硬盘换到了另一台电脑)。我尝试通过 Oracle Java 7、Oracle Java 8 和 OpenJDK Java 7 启动 Minecraft。以下是日志:

[16:55:52 INFO]: Job 'Version & Libraries' finished successfully (took 0:01:15.420)
[16:55:52 INFO]: Launching game
[16:55:52 INFO]: Unpacking natives to /home/diamond/.minecraft/versions/1.8.1/1.8.1-natives-1665154416894
[16:55:52 INFO]: Launching in /home/diamond/.minecraft
[16:55:52 INFO]: Half command: /usr/lib/jvm/java-8-oracle/jre/bin/java -Xmx1G -XX:+UseConcMarkSweepGC -XX:-CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M -Djava.library.path=/home/diamond/.minecraft/versions/1.8.1/1.8.1-natives-1665154416894 -cp /home/diamond/.minecraft/libraries/com/ibm/icu/icu4j-core-mojang/51.2/icu4j-core-mojang-51.2.jar:/home/diamond/.minecraft/libraries/net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar:/home/diamond/.minecraft/libraries/com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar:/home/diamond/.minecraft/libraries/com/paulscode/codecwav/20101023/codecwav-20101023.jar:/home/diamond/.minecraft/libraries/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar:/home/diamond/.minecraft/libraries/com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.jar:/home/diamond/.minecraft/libraries/com/paulscode/soundsystem/20120107/soundsystem-20120107.jar:/home/diamond/.minecraft/libraries/io/netty/netty-all/4.0.23.Final/netty-all-4.0.23.Final.jar:/home/diamond/.minecraft/libraries/com/google/guava/guava/17.0/guava-17.0.jar:/home/diamond/.minecraft/libraries/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar:/home/diamond/.minecraft/libraries/commons-io/commons-io/2.4/commons-io-2.4.jar:/home/diamond/.minecraft/libraries/commons-codec/commons-codec/1.9/commons-codec-1.9.jar:/home/diamond/.minecraft/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar:/home/diamond/.minecraft/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar:/home/diamond/.minecraft/libraries/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/home/diamond/.minecraft/libraries/com/mojang/authlib/1.5.17/authlib-1.5.17.jar:/home/diamond/.minecraft/libraries/com/mojang/realms/1.7.8/realms-1.7.8.jar:/home/diamond/.minecraft/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar:/home/diamond/.minecraft/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar:/home/diamond/.minecraft/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/home/diamond/.minecraft/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar:/home/diamond/.minecraft/libraries/org/apache/logging/log4j/log4j-api/2.0-beta9/log4j-api-2.0-beta9.jar:/home/diamond/.minecraft/libraries/org/apache/logging/log4j/log4j-core/2.0-beta9/log4j-core-2.0-beta9.jar:/home/diamond/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl/2.9.1/lwjgl-2.9.1.jar:/home/diamond/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl_util/2.9.1/lwjgl_util-2.9.1.jar:/home/diamond/.minecraft/libraries/tv/twitch/twitch/6.5/twitch-6.5.jar:/home/diamond/.minecraft/versions/1.8.1/1.8.1.jar net.minecraft.client.main.Main
[16:55:52 INFO]: Looking for orphaned versions to clean up...
[16:55:53 ERROR]: java.io.IOException: Stream closed
[16:55:53 ERROR]: java.io.IOException: Stream closed
A bunch of Stream Closed later (about 30 I guess)
[16:55:53 ERROR]: Game ended with bad state (exit code 1)
[16:55:53 INFO]: Ignoring visibility rule and showing launcher due to a game crash
[16:55:53 INFO]: Looking for old natives & assets to clean up...
[16:55:53 INFO]: Deleting /home/diamond/.minecraft/versions/1.8.1/1.8.1-natives-1665154416894

游戏输出中显示的内容是

Error: Could not find or load main class net.minecraft.client.main.Main

谁能帮我?

硬件规格:

  • CPU:2x Pentium(R) 双核 CPU T4200 @ 2.00GHz
  • 内存:1979MB 或 2GB
  • 操作系统:Ubuntu 14.04.1 LTS,运行 xubuntu-desktop
  • OpenGL渲染器:Mesa DRI Mobile Intel GM45 Express芯片组
  • OpenGL供应商:英特尔开源技术芯片组
  • X11 供应商:X.Org 基金会 1.15.1

答案1

打开终端并输入

sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt-get update
sudo apt-get upgrade

(每次一行)

您可能需要使用 重新启用 unity 的 opengl compizconfig-settings-manager,因此之后执行sudo apt-get install compizconfig-settings-manager

完成此操作后ccsm,在桌面部分下转到 ubuntu unity 插件并重新激活它。

至于其他错误,您可能需要删除~/.minecraft子目录。

警告!您将丢失所有保存/服务器,请提前备份它们,MOD 也是如此。这将重置 MINECRAFT 至库存状态

相关内容