我已经在 12.04 上运行 minecraft 很久了,但自从升级到 14.04 后它就无法启动了。我使用的是 Oracle Java 8,但我试过 Oracle Java 7 和 Ubuntu 自带的默认 Java 7。
错误如下:
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/myuser/minecraft/.minecraft/versions/1.8.3/1.8.3-natives-1013592580460/liblwjgl.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/myuser/minecraft/.minecraft/versions/1.8.3/1.8.3-natives-1013592580460/liblwjgl64.so: /home/myuser/minecraft/.minecraft/versions/1.8.3/1.8.3-natives-1013592580460/liblwjgl64.so: failed to map segment from shared object: Operation not permitted
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1855)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.lwjgl.Sys$1.run(Sys.java:72)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
at org.lwjgl.Sys.loadLibrary(Sys.java:87)
at org.lwjgl.Sys.<clinit>(Sys.java:117)
at avf.J(SourceFile:2524)
at net.minecraft.client.main.Main.main(SourceFile:41)
我尝试过有或没有
apt-get install liblwjgl-java liblwjgl-java-jni
我正在使用 Ubuntu Gnome,但也尝试过从 OpenBox 运行。
我的电脑是 Intel i3,配备 4GB RAM 和“普通”Intel 显卡。我运行的是 Ubuntu 14.04 64 位。在 12.04 上,Minecraft 运行良好(不是非常流畅,但它不是高规格的机器,而且很容易玩)