Minecraft in jdk 1.7.0_u2 x64

Solution 1:

I have the same problem but I installed via webupd8 - Install Oracle Java (JDK) 7 in Ubuntu via PPA Repository, searching the internet I found this script (I'm adapted the script to my system) but basically this is:

#!/bin/bash
export LD_LIBRARY_PATH="/opt/java/jre/lib/amd64"
java minecraft.jar

The script for my system:

#!/bin/bash
export LD_LIBRARY_PATH="/usr/lib/jvm/java-7-oracle/jre/lib/amd64"
java -jar Minecraft.jar

I hope this will be useful

Solution 2:

Found this on a Fedora forum and it worked nicely for me running 12.04 Ubuntu-64bit with OpenJDK7u3

Link

"I just had the same problem, and here is what worked for me:

  1. Go to http://lwjgl.org/download.php
  2. Click the link to download the newest stable release
  3. Download lwjgl-x.x.x.zip (lwjgl-2.8.3.zip at the time of writing)
  4. Go to your home folder and press ctrl + h to show your hidden files
  5. Go to .minecraft/bin and copy the matching .jar files from the jar folder in the zip that you downloaded into there
  6. Copy the .so files from the native/linux folder in the zip file to .minecraft/bin/natives
  7. Launch Minecraft

Hope that helps! "

Solution 3:

Instead of launching a script everytime you want to run minecraft, you can also add the libraries to the ldconfig:

sudo su -c "echo [path to java]/lib/amd64(or i386) > /etc/ld.so.conf.d/java.conf"
sudo ldconfig

now just run minecraft by opening it with java in the file manager

(example of line 1: sudo su -c "echo /usr/lib/jvm/oracle-java/lib/amd64 > /etc/ld.so.conf.d/java.conf")

Solution 4:

If you use this type of Java, http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux, then this is the correct code you need.

#!/bin/bash
export LD_LIBRARY_PATH="/usr/local/java/jre1.7.0_05/lib/amd64"
java -jar /path to your minecraft.jar file

Thank-you JoZ3, I just slightly modified your code.

Solution 5:

@JoZ3 Thank you very much. You solved my problem. Trick was to redirect that path. Just a small tut for beginners. Before reading this, I assumed that you all installed JDK 7 like JoZ3 wrote in his post. (Oracle JDK is needed.)

  1. Download minecraft.jar. Place it in some folder on desktop.
  2. Create a text document and paste JoZ3's commands in it. This is the required command and we are creating a shell script.

    #!/bin/bash  
    export LD_LIBRARY_PATH="/usr/lib/jvm/java-7-oracle/jre/lib/amd64"  
    java -jar Minecraft.jar 
    

    Save it as, for example, fix.sh.

  3. Make sure you run chmod fix.sh with this command. cd to the directory where the file is located and type in the terminal the following commands:

    sudo chmod 755 fix.sh
    
  4. Run fix.sh from terminal by dragging it to the terminal and pressing Enter, or by manual typing its location in terminal and pressing Enter.

Game should work now! It solved my problem.