LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices

Reply
 
Search this Thread
Old 02-17-2012, 07:45 PM   #1
Lumify
Member
 
Registered: Jan 2012
Distribution: Debian Stable
Posts: 52

Rep: Reputation: Disabled
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.
 
Old 02-19-2012, 09:26 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
If you want help you need to actually tell us what went wrong. How is "it doesn't work" meant to get you help?
 
Old 02-19-2012, 10:10 PM   #3
Lumify
Member
 
Registered: Jan 2012
Distribution: Debian Stable
Posts: 52

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Lumify View Post
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?
 
Old 02-20-2012, 02:10 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
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/
 
Old 02-20-2012, 05:42 AM   #5
Lumify
Member
 
Registered: Jan 2012
Distribution: Debian Stable
Posts: 52

Original Poster
Rep: Reputation: Disabled
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.
 
Old 02-20-2012, 12:21 PM   #6
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 183

Rep: Reputation: 25
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.
 
Old 02-21-2012, 08:58 AM   #7
Lumify
Member
 
Registered: Jan 2012
Distribution: Debian Stable
Posts: 52

Original Poster
Rep: Reputation: Disabled
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

Last edited by Lumify; 02-21-2012 at 08:59 AM.
 
Old 02-22-2012, 07:21 AM   #8
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 183

Rep: Reputation: 25
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.
 
Old 02-25-2012, 02:26 PM   #9
Lumify
Member
 
Registered: Jan 2012
Distribution: Debian Stable
Posts: 52

Original Poster
Rep: Reputation: Disabled
Minecraft should work on both 64 bit and 32 bit. I've used it on Windows with 64 bit Java with no problems.
 
Old 02-26-2012, 12:58 PM   #10
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 183

Rep: Reputation: 25
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.
 
Old 02-27-2012, 03:31 PM   #11
Lumify
Member
 
Registered: Jan 2012
Distribution: Debian Stable
Posts: 52

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by cheesus View Post
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.
 
Old 02-28-2012, 03:57 AM   #12
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 183

Rep: Reputation: 25
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.
 
Old 03-12-2012, 11:59 PM   #13
Lumify
Member
 
Registered: Jan 2012
Distribution: Debian Stable
Posts: 52

Original Poster
Rep: Reputation: Disabled
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.

Last edited by Lumify; 03-13-2012 at 12:01 AM.
 
Old 03-21-2012, 06:25 AM   #14
Lumify
Member
 
Registered: Jan 2012
Distribution: Debian Stable
Posts: 52

Original Poster
Rep: Reputation: Disabled
Bump. How can I get Java 7 to work?
 
Old 05-18-2012, 09:33 PM   #15
Riao
LQ Newbie
 
Registered: Apr 2011
Location: Ontario, Canada
Distribution: Mint & Debian
Posts: 3

Rep: Reputation: 0
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"

Last edited by Riao; 05-18-2012 at 09:34 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Minecraft Problems! goodbyebluemonday Linux - Games 2 07-27-2012 12:01 AM
minecraft ssh todo Linux - Newbie 2 01-12-2012 07:15 PM
Will changes in Java binary executable affect running Java programs? xuancong Programming 6 04-14-2011 01:04 AM
[SOLVED] 1337 Minecraft Server enorbet Slackware 4 03-20-2011 05:45 PM


All times are GMT -5. The time now is 11:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration