Page 1 of 1

[SOLVED] Minecraft on Mageia

PostPosted: Sep 16th, '11, 17:04
by mla
Has anybody managed to get Minecraft running on Mageia? It works fine for me on Mandriva 10.2 (x64), but crashes on attempting to login under Mageia.

Re: Minecraft on Mageia

PostPosted: Sep 16th, '11, 21:12
by Akien
It works fine here, but I think I had a few things to set before.

Did you follow the instructions from minecraft.net?, i.e.:
minecraft.net wrote:The jar is executable and might work as-is. If you run into memory issues, try launching it with java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame, also please use Sun's JVM.


Mageia is shipped with OpenJDK as a free alternative to Sun's JVM, still you can find java-sun-1.6.0 in the Nonfree repository. Then you have to set it as the default JVM, using this command (IIRC):
Code: Select all
su
update-alternatives --config java

Re: Minecraft on Mageia

PostPosted: Sep 16th, '11, 21:48
by mla
Thanks. I have both Mandriva 2010.2 and Mageia 1 dual booting on the same machine (64 bit versions in both cases), so the hardware is identical. As is the Minecraft installation and invocation command, since I mount the same /home on both systems. And yes, I use the long command line as recommended by the Minecraft installation instructions. And both Mandriva and Magia have OpenJDK 1.6.0 (22b22.2mdv2010.2 and 14.b22.5.mga1 respectively).

On Mandriva I have no problem. On Mageia I get the login screen, but when I actually attempt to login, there is a long pause and then the following message appears

"
Minecraft has crashed!
----------------------

Minecraft has stopped running because it encountered a problem.

If you wish to report this, please copy this entire text and email it to support@mojang.com.
Please include a description of what you did when the error occured."

I duly mailed the message several days ago, but to be honest, Mageia is not, at present a major player (yet!), so I don't expect a rapid resolution. Asking on this forum might, I thuoght, be more productive.

Re: Minecraft on Mageia

PostPosted: Sep 16th, '11, 22:02
by mla
By a remarkable coincidence (?) OpenJDK 1.6.0 update has just arrived. Alas, the symptoms remain the same with this update (I even rebooted the system, just to make absolutely sure). Minecraft crashes out with the same message. The principal error being reported is "failed to get system properties (java.lang.NullPointerException)".

Any ideas anybody?

Re: Minecraft on Mageia

PostPosted: Sep 16th, '11, 22:17
by doktor5000
Why haven't you tried out what Akien suggested, that should fix your problem.

Re: Minecraft on Mageia

PostPosted: Sep 16th, '11, 22:33
by mla
Um... sorry, I shuold have said... I did try it. No difference. It still crashes in the same manner.

Besides, it would seem to me that if it works with OpenJDK on Mandriva 2010.2, it is rather surprising that it does not on Mageia. Probably naive of me. :-)

Re: Minecraft on Mageia

PostPosted: Sep 16th, '11, 23:29
by doktor5000
mla wrote:Um... sorry, I shuold have said... I did try it. No difference. It still crashes in the same manner.

Besides, it would seem to me that if it works with OpenJDK on Mandriva 2010.2, it is rather surprising that it does not on Mageia. Probably naive of me. :-)


Well, strange that it works here, with both Java stacks:
Code: Select all
[doktor5000@mageia1 ~]$ java -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.2) (fedora-14.b22.5.1.mga1-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)


Minecraft beta (that's the only thing i found there to download') launches fine.
Then change to Orcales JVM:
Code: Select all
[doktor5000@mageia1 ~]$ sudo update-alternatives --config java

There are 2 programs which provide `java'.

  Selection    Command
-----------------------------------------------
*+    1        /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
      2        /usr/lib/jvm/jre-1.6.0-sun/bin/java

Enter to keep the default[*], or type selection number: 2
Using `/usr/lib/jvm/jre-1.6.0-sun/bin/java' to provide `java'.

[doktor5000@mageia1 ~]$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)


Minecraft beta still launches fine.

Re: Minecraft on Mageia

PostPosted: Sep 17th, '11, 00:17
by mla
Oh, it launches all right. The crash happens when I attempt to start a game, i.e. click on the "login" button (I think you need to register a free Minecraft account to get that) or try to run the game off-line(I get a "play off-line" button in such a case).

FWIW, OpenJDK on Mandriva "java -version" gives IcedTea6 1.10.3 rather rather than 1.10.2 -- the rest is the same.

Re: Minecraft on Mageia

PostPosted: Sep 17th, '11, 10:22
by doktor5000
Have you asked Minecraft developers about this problem?

Re: Minecraft on Mageia

PostPosted: Sep 17th, '11, 11:02
by mla
Sure. Got an automated message back saying it might get looked at. As already noted earlier in the thread, Mageia is not yet a platform of sufficient importance to have such things investigated by software providers. And once one adds the fact that Minecraft runs happily on Mandriva 2010.2 with the same Java version, if I were them I'd certainly say: go talk to Mageia people. :-(

In any case, I am beginning to wonder whether this is just a symptom of a much deeper problem. Now that I am trying to use Mageia as my main desktop OS, I see the OS hanging fairly frequently and apparently at random, with no immediately obvious common factor to the hangs.

That's admittedly not the same as a Java program crashing, but I am a great fan of the Occam's Razor. :-)

I'll start a separate thread on the hangs in a mo.

Re: Minecraft on Mageia

PostPosted: Sep 17th, '11, 17:27
by mla
OK, Minecraft problem solved and it may well solve the hangs problem too. Unlike Mandriva, Mageia does *not* by default install NVidia drivers on machines with NVidia graphics. Installing the non-free x11-driver-video-nvidia-current package results in Minecraft working as it should.

Re: [SOLVED] Minecraft on Mageia

PostPosted: Sep 18th, '11, 19:56
by doktor5000
Mandriva does also not install Nvidia driver as default. Maybe you mistaken a Mandriva LiveCD install (includes/uses proprietary stuff by default) with a Mageia FreeDVD install? Per definition the Nvidia driver can't ne distributed on the Free DVDs. Has maybe changed with Mandriva 2011, dunno.

Re: [SOLVED] Minecraft on Mageia

PostPosted: Sep 18th, '11, 21:38
by mla
True. I was thinking of the Mandriva power-pack. I understand and accept that Mageia is not going that route. OTOH don't be surprised if other former Mandriva users need to be explicitly reminded of the fact.

Re: [SOLVED] Minecraft on Mageia

PostPosted: Sep 18th, '11, 21:49
by doktor5000
Well, you got a point there. But even then, Mandriva Powerpack != Mandriva Linux ;)