I just want to thank you. People who question the utility of your script miss the point. Yes, you can install the JRE yourself, right-click the .jar and open with the JRE, etc., but being able to run a script one time and then run
minecraft
or launch it from Dash by searching or easily dragging the shortcut into the Unity Launcher is extremely convenient.
Thank you for crafting this epic script, and thank you for freely sharing it with the community.
I'd prefer not to install another java. I'm quite fine with sun java 7 jdk.
Can you make a version that doesn't look for java?
Minecraft runs fine on sun jdk 1.7_01 there is no reason for me to be forced to downgrade.
Also I want to try and port my program to linux, The windows versions was written in C# and the Mac version is a bash script wrapped in a .app container so it always launches as an executable, does anybody here know how I could make a linux script executable without the user manually having the give it the permissions?
For me, if you compress the file after you've given it permissions, it keeps them between computers.
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT a1dce528 --------
Generated 1/16/12 1:41 AM
Minecraft: Minecraft 1.1
OS: Linux (i386) version 3.0.0-14-generic-pae
Java: 1.6.0_23, Sun Microsystems Inc.
VM: OpenJDK Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
[failed to get system properties (java.lang.NullPointerException)]
org.lwjgl.LWJGLException: Could not init GLX
at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)
at org.lwjgl.opengl.LinuxDisplayPeerInfo.<init>(LinuxDisplayPeerInfo.java:52)
at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:684)
at org.lwjgl.opengl.Display.create(Display.java:854)
at org.lwjgl.opengl.Display.create(Display.java:784)
at org.lwjgl.opengl.Display.create(Display.java:765)
at net.minecraft.client.Minecraft.a(SourceFile:230)
at net.minecraft.client.Minecraft.run(SourceFile:648)
at java.lang.Thread.run(Thread.java:679)
--- END ERROR REPORT 77e5c9ed ----------
so i used the installer and apperently thanks to you it checks on how the startup di. but i gotthis when i got the blackscreen (which i will note happened before i got the installer....)
27 achievements
174 recipes
Setting user: Galidorguy2008, 2657504647579780154
Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerError
at net.minecraft.client.Minecraft.a(SourceFile:180)
at net.minecraft.client.Minecraft.run(SourceFile:648)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.lwjgl.opengl.XRandR$Screen.<init>(XRandR.java:234)
at org.lwjgl.opengl.XRandR$Screen.<init>(XRandR.java:196)
at org.lwjgl.opengl.XRandR.populate(XRandR.java:87)
at org.lwjgl.opengl.XRandR.access$100(XRandR.java:52)
at org.lwjgl.opengl.XRandR$1.run(XRandR.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.opengl.XRandR.getConfiguration(XRandR.java:108)
at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:618)
at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
... 3 more
so, what happened?
Rollback Post to RevisionRollBack
Can anyone sssspare ssssome Gunpowder? it wassss taken from me thissss morning... CURSSSSE YOU SSSSTEVE!!! Sssseeya folkssss
This looks cool, as I wanted to install Minecraft on this old laptop that I just installed Ubuntu on (to see how well it runs Minecraft) but I've run into a problem. I've checked off the executable box and it asks me how I want to run it when I double click, but if I click "Run in terminal" the terminal opens and the closes again in seconds. If I click "run" it just doesn't do anything. What is going on? By the way, this is the first time I've ever used any distribution of Linux and I don't know much about it, so I can't really do anything complicated.
This looks cool, as I wanted to install Minecraft on this old laptop that I just installed Ubuntu on (to see how well it runs Minecraft) but I've run into a problem. I've checked off the executable box and it asks me how I want to run it when I double click, but if I click "Run in terminal" the terminal opens and the closes again in seconds. If I click "run" it just doesn't do anything. What is going on? By the way, this is the first time I've ever used any distribution of Linux and I don't know much about it, so I can't really do anything complicated.
Whenever I try running this file, terminal immediately closes before anything happens. When trying to run it through terminal (you know, bash Minecraft_Installer_20.sh), all I get is the following:
Minecraft_Installer_20.sh: line 1: syntax error near unexpected token `newline'
Minecraft_Installer_20.sh: line 1: `'
EDIT2:
I don't know where else to ask this, but this seems like a good thread to get help on Ubuntu issues. It seems like I'm having issues getting Java installed, and it's making my game crash before it even boots up properly. This is what Minecraft gives me:
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 7cf3a456 --------
Generated 3/27/12 5:44 PM
Minecraft: Minecraft 1.2.4
OS: Linux (i386) version 3.0.0-16-generic-pae
Java: 1.6.0_23, Sun Microsystems Inc.
VM: OpenJDK Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
[failed to get system properties (java.lang.NullPointerException)]
org.lwjgl.LWJGLException: Could not init GLX
at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)
at org.lwjgl.opengl.LinuxDisplayPeerInfo.<init>(LinuxDisplayPeerInfo.java:52)
at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:684)
at org.lwjgl.opengl.Display.create(Display.java:854)
at org.lwjgl.opengl.Display.create(Display.java:784)
at org.lwjgl.opengl.Display.create(Display.java:765)
at net.minecraft.client.Minecraft.a(SourceFile:230)
at net.minecraft.client.Minecraft.run(SourceFile:650)
at java.lang.Thread.run(Thread.java:679)
--- END ERROR REPORT 7381fee1 ----------
And this is what I got in the Terminal when I try to install Minecraft:
looking for Sun-Java...
you'll need to install Sun-Java-JRE...
this will require root access!
prepare for lots of text!
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'sun-java6-jre' has no installation candidate
E: Unable to locate package sun-java6-plugin
update-java-alternatives: directory does not exist: /usr/lib/jvm/java-6-sun
So Minecraft installs properly but I obviously am not getting Java installed. Exactly what is wrong here, is it trying to install an old version of java or something? What is it I need for this all to work?
I'm running into a problem. I've ran your script and it installs everything correctly, but when i launch Minecraft and log in, I just see a black screen. Here is the error I get:
Exception in thread "Minecraft main thread" java.lang.UnsatisfiedLinkError: /home/benjamin/.minecraft/bin/natives/liblwjgl.so: /home/benjamin/.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.loadLibrary1(ClassLoader.java:1939)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1059)
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:184)
at net.minecraft.client.Minecraft.run(SourceFile:657)
at java.lang.Thread.run(Thread.java:722)
I'm running into a problem. I've ran your script and it installs everything correctly, but when i launch Minecraft and log in, I just see a black screen. Here is the error I get:
Exception in thread "Minecraft main thread" java.lang.UnsatisfiedLinkError: /home/benjamin/.minecraft/bin/natives/liblwjgl.so: /home/benjamin/.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.loadLibrary1(ClassLoader.java:1939)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1059)
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:184)
at net.minecraft.client.Minecraft.run(SourceFile:657)
at java.lang.Thread.run(Thread.java:722)
Thank you for crafting this epic script, and thank you for freely sharing it with the community.
hey i made a new vid
Can you make a version that doesn't look for java?
Minecraft runs fine on sun jdk 1.7_01 there is no reason for me to be forced to downgrade.
Not sure where you've been, just set the file to executable and you can double click the launcher jar.
Who would do that when they can just double click a file?
Why not just double click the launcher on your desktop? Why would you need a shortcut for that?
We still have to download a script...
For me, if you compress the file after you've given it permissions, it keeps them between computers.
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 [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT a1dce528 --------
Generated 1/16/12 1:41 AM
Minecraft: Minecraft 1.1
OS: Linux (i386) version 3.0.0-14-generic-pae
Java: 1.6.0_23, Sun Microsystems Inc.
VM: OpenJDK Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
[failed to get system properties (java.lang.NullPointerException)]
org.lwjgl.LWJGLException: Could not init GLX
at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)
at org.lwjgl.opengl.LinuxDisplayPeerInfo.<init>(LinuxDisplayPeerInfo.java:52)
at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:684)
at org.lwjgl.opengl.Display.create(Display.java:854)
at org.lwjgl.opengl.Display.create(Display.java:784)
at org.lwjgl.opengl.Display.create(Display.java:765)
at net.minecraft.client.Minecraft.a(SourceFile:230)
at net.minecraft.client.Minecraft.run(SourceFile:648)
at java.lang.Thread.run(Thread.java:679)
--- END ERROR REPORT 77e5c9ed ----------
27 achievements
174 recipes
Setting user: Galidorguy2008, 2657504647579780154
Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerError
at net.minecraft.client.Minecraft.a(SourceFile:180)
at net.minecraft.client.Minecraft.run(SourceFile:648)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.lwjgl.opengl.XRandR$Screen.<init>(XRandR.java:234)
at org.lwjgl.opengl.XRandR$Screen.<init>(XRandR.java:196)
at org.lwjgl.opengl.XRandR.populate(XRandR.java:87)
at org.lwjgl.opengl.XRandR.access$100(XRandR.java:52)
at org.lwjgl.opengl.XRandR$1.run(XRandR.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.opengl.XRandR.getConfiguration(XRandR.java:108)
at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:618)
at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
... 3 more
so, what happened?
Sssseeya folkssss
I get this too!! Anyone?
Try this: http://www.mediafire.com/?p8an2ylw1x09z0c
I copied and pasted the script code from the OP into a text file and named it exactly like the original file, so just follow the OP. It worked for me.
Thanks! That worked great. Looks like the current download is bugged...
1. Open Terminal.
2. Type in 'bash' and a space.
3. Drag the file into the Terminal window.
4. Press enter, see error.
Minecraft_Installer_20.sh: line 1: syntax error near unexpected token `newline'
Minecraft_Installer_20.sh: line 1: `'
Anyone able to help me?
EDIT:
Tried using this file instead, worked nicely using the terminal. Thanks!
http://www.mediafire...p8an2ylw1x09z0c
EDIT2:
I don't know where else to ask this, but this seems like a good thread to get help on Ubuntu issues. It seems like I'm having issues getting Java installed, and it's making my game crash before it even boots up properly. This is what Minecraft gives me:
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 7cf3a456 --------
Generated 3/27/12 5:44 PM
Minecraft: Minecraft 1.2.4
OS: Linux (i386) version 3.0.0-16-generic-pae
Java: 1.6.0_23, Sun Microsystems Inc.
VM: OpenJDK Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
[failed to get system properties (java.lang.NullPointerException)]
org.lwjgl.LWJGLException: Could not init GLX
at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)
at org.lwjgl.opengl.LinuxDisplayPeerInfo.<init>(LinuxDisplayPeerInfo.java:52)
at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:684)
at org.lwjgl.opengl.Display.create(Display.java:854)
at org.lwjgl.opengl.Display.create(Display.java:784)
at org.lwjgl.opengl.Display.create(Display.java:765)
at net.minecraft.client.Minecraft.a(SourceFile:230)
at net.minecraft.client.Minecraft.run(SourceFile:650)
at java.lang.Thread.run(Thread.java:679)
--- END ERROR REPORT 7381fee1 ----------
And this is what I got in the Terminal when I try to install Minecraft:
you'll need to install Sun-Java-JRE...
this will require root access!
prepare for lots of text!
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'sun-java6-jre' has no installation candidate
E: Unable to locate package sun-java6-plugin
update-java-alternatives: directory does not exist: /usr/lib/jvm/java-6-sun
So Minecraft installs properly but I obviously am not getting Java installed. Exactly what is wrong here, is it trying to install an old version of java or something? What is it I need for this all to work?
Exception in thread "Minecraft main thread" java.lang.UnsatisfiedLinkError: /home/benjamin/.minecraft/bin/natives/liblwjgl.so: /home/benjamin/.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.loadLibrary1(ClassLoader.java:1939)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1059)
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:184)
at net.minecraft.client.Minecraft.run(SourceFile:657)
at java.lang.Thread.run(Thread.java:722)
Nevermind, I fixed the problem.
http://dl.dropbox.com/u/54213557/MIFU/mifu.sh