LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Games (https://www.linuxquestions.org/questions/linux-games-33/)
-   -   Minecraft not running on Java 7 (https://www.linuxquestions.org/questions/linux-games-33/minecraft-not-running-on-java-7-a-929983/)

Lumify 02-17-2012 07:45 PM

Minecraft not running on Java 7
 
I cannot get Minecraft to run on Java 7. Right now I have Oracle Java 7 installed with OpenJDK 6 as a backup. When I start Minecraft with Oracle Java 7, it gives me a black screen after login. It runs at a mediocre 45 FPS with OpenJDK 6 (I get 120 FPS on Windows). I've tried OpenJDK 7 too and it doesn't work either. I haven't tried SunJDK 6.

I installed OpenJDK 7 from the Debian Wheezy repo (it's now uninstalled), and I installed Oracle Java 7 following this guide: http://askubuntu.com/questions/56104...cle-java-jre-7.

I've read that Java 7 could give me better performance, so I want to see if I can get either OpenJDK or Oracle Java 7 to work. If I can get 120 FPS on Windows, I should be able to get at least 60 on Linux.

acid_kewpie 02-19-2012 09:26 AM

If you want help you need to actually tell us what went wrong. How is "it doesn't work" meant to get you help?

Lumify 02-19-2012 10:10 PM

Quote:

Originally Posted by Lumify (Post 4605525)
When I start Minecraft with Oracle Java 7, it gives me a black screen after login.

That's how it doesn't work. If I run it from terminal, I get this after I log in (is that what you meant?):

Code:

27 achievements
174 recipes
Setting user: Lumify, 3704789772431793636
Exception in thread "Minecraft main thread" java.lang.UnsatisfiedLinkError: /home/c3po/.minecraft/bin/natives/liblwjgl.so: /home/c3po/.minecraft/bin/natives/liblwjgl.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.load0(Unknown Source)
        at java.lang.System.load(Unknown Source)
        at org.lwjgl.Sys$1.run(Sys.java:69)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
        at org.lwjgl.Sys.loadLibrary(Sys.java:81)
        at org.lwjgl.Sys.<clinit>(Sys.java:98)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:132)
        at net.minecraft.client.Minecraft.a(SourceFile:180)
        at net.minecraft.client.Minecraft.run(SourceFile:648)
        at java.lang.Thread.run(Unknown Source)

It looks like the problem involves elves, but Santa doesn't know anything about it. Any ideas?

acid_kewpie 02-20-2012 02:10 AM

well there are plenty of google hits if you'd just searched for that error. This may be of use: http://www.minecraftforum.net/topic/...r-blackscreen/

Lumify 02-20-2012 05:42 AM

I've tried that $ export LD_LIBRARY_PATH="/opt/java/jre/lib/amd64" fix already. That's the only fix I can find because it seems to fix everyone's problems. It doesn't work for me.

Thanks for posting by the way.

cheesus 02-20-2012 12:21 PM

Well, it definitely is a 32Bit/64Bit problem.
Did you download the correct version for your CPU ? (try "uname -a")
What JVM are you running (try "java -version") ?
Cheers, Tom.

Lumify 02-21-2012 08:58 AM

I think it is the right version. I'll show you the Java 6 info and the Java 7 info. I have both installed right now.

Code:

c3po@debian:~$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b24~pre2-1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
c3po@debian:~$ sudo update-alternatives --config java
[sudo] password for c3po:
There are 4 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority  Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java  1061      auto mode
  1            /usr/bin/gij-4.4                                1044      manual mode
  2            /usr/bin/gij-4.6                                1046      manual mode
  3            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java  1061      manual mode
  4            /usr/lib/jvm/jre1.7.0_03/bin/java                3        manual mode

Press enter to keep the current choice[*], or type selection number: 4
update-alternatives: using /usr/lib/jvm/jre1.7.0_03/bin/java to provide /usr/bin/java (java) in manual mode.
c3po@debian:~$ java -version
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)

uname -a gives me this:
Linux debian 3.1.0-7.dmz.1-liquorix-amd64 #1 ZEN SMP PREEMPT Wed Jan 4 21:13:24 CST 2012 x86_64 GNU/Linux

cheesus 02-22-2012 07:21 AM

So your Java looks good, 64 Bit VM for 64 Bit system.
It seems the libraries in "/home/c3po/.minecraft/" are 32 Bit.
Does the software you try to run have a specific 64 Bit version ?
Cheers, Tom.

Lumify 02-25-2012 02:26 PM

Minecraft should work on both 64 bit and 32 bit. I've used it on Windows with 64 bit Java with no problems.

cheesus 02-26-2012 12:58 PM

Maybe there's some leftover files in your home directory ?
Try renaming /home/c3po/.minecraft to something else and re-run / re-install.
Cheers, Tom.

Lumify 02-27-2012 03:31 PM

Quote:

Originally Posted by cheesus (Post 4612532)
Maybe there's some leftover files in your home directory ?
Try renaming /home/c3po/.minecraft to something else and re-run / re-install.
Cheers, Tom.

I've tried that several times and it doesn't change anything. I have also tried reinstalling Java 7.

cheesus 02-28-2012 03:57 AM

Most people seem to run in on Sun Java6.
You can download Java6 from oracle.com and install it to s special/dedicated directory without affecting the rest of the system, if you download the zip/tgz.
(Java does not NEED to be installed as a Linux package, that's just convenience).

Also, have you already checked
http://java.com/en/download/help/minecraft_error.xml
?

Cheers, Tom.

Lumify 03-12-2012 11:59 PM

Sorry about the late reply. Java 6 is currently working, but I'm getting a horrendous framerate. I have read that Java 7 gives better performance, so I want to use that. The game does not leave an error log, and my graphics driver is up to date anyway.

Lumify 03-21-2012 06:25 AM

Bump. How can I get Java 7 to work?

Riao 05-18-2012 09:33 PM

Make sure that /opt/java/jre/lib/amd64 is an actual path in your system. On mine I needed to use /usr/lib/jvm/jre1.7.0/lib/amd64

So my script uses

export LD_LIBRARY_PATH="/usr/lib/jvm/jre1.7.0/lib/amd64"


All times are GMT -5. The time now is 03:10 PM.