When I go to the download page for Minecraft on Linux, I get a .jar file.
I think I have installed Java correctly, because when I type "java" into console, I get usage help.
But how do I start Minecraft now? When I try to execute it with Java from the file explorer, nothing happens.
When I go into the folder in console and enter "java -jar Minecraft.jar", as I've read somewhere, it gives me the following output immediately:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f0df2e6d009, pid=3055, tid=3056
#
# JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-04-14-195246.buildd.src)
# Java VM: OpenJDK 64-Bit Server VM (9-internal+0-2016-04-14-195246.buildd.src, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C [libjava.so+0x1d009] JNU_GetEnv+0x19
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /home/fabian/Downloads/core.3055)
#
# An error report file with more information is saved as:
# /home/fabian/Downloads/hs_err_pid3055.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
I knew that it would be a bit more complicated than just installing it from the software center, since it's not in there, but I can't get it working at all. Everything I found so far regarding tutorials or help forums either sounds like it's the easiest thing ever ("Execute with Java" Haha) or is for something way more complicated (programming an own launcher, ...).
So my question is just: How do I start Minecraft?
(P.S.: Unpacking it doesn't look right, too. There's nothing to execute.)
I took the "Linux x64" version from www.java.com/de/download/linux_manual.jsp , because from a quick research the "RPM" version didn't look like what I wanted. Then I followed the instructions that are linked next to the download:
tar zxvf jre-8u91-linux-x64.tar.gz
and then
sudo apt-get install openjdk-9-jre
. It wasn't in the Software Center, I don't know why.
Sadly I can't remember where I found it but do a search online for Minecraft on Ubuntu. At least for versions before the current someone had made a community installer (like exists for Chrome). Its a couple commands you type into the terminal and it installs everything even giving a shortcut to launch the game.
I took the "Linux x64" version from www.java.com/de/download/linux_manual.jsp , because from a quick research the "RPM" version didn't look like what I wanted. Then I followed the instructions that are linked next to the download:
tar zxvf jre-8u91-linux-x64.tar.gz
and then
sudo apt-get install openjdk-9-jre
. It wasn't in the Software Center, I don't know why.
Get rid of openjdk-9-jre by inputting this command:
sudo apt purge openjdk-9-jre
Java 9 is on early alpha and it's not yet released to the public (at the time I typed this). I don't know why you would download a tarball of Java 8, but then install Java 9.
Here's the easier way: Input these following commands on the terminal. Purge Java 9 first, as I said, it's on alpha and it's not yet released to the public.
After a while, the screen will change, telling you to agree to the Oracle terms first before any real installation begins. There's no mouse support, so use your arrow keys on the keyboard and press the "ENTER" key to select something.
Once it's installed, Minecraft should run fine. You may need to right click, and open with "Oracle Java 8 Runtime" (also, check the box to set it as default) to get it to work.
Make sure it is working (type in "java -version" without the quotes). If it says "java version 1.8.0_insertversionhere", then you're good to go.
[email protected]:~$ java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
@dadiko39 Thanks, that worked! Now I have to figure out how to put it in the quickstarter, but I can probably figure that out myself.
@JaxtonDragoon That sounds good, but dadiko39's solution already worked pretty good. Maybe someone in the future who finds this post can find it useful.
Interestingly I can't get fps over 60 now, even with VSync off. But who needs that anyway? It was nice being able to say that I get more than 6000, but whatever.
Advantage is that window resize works after exiting fullscreen (doesn't work on Windows, MC-68754).
Hm, it seems to not be so easy. Does anyone have an easy solution to put Minecraft.jar into the starter?
Unfortunately, this is not possible to do so. There's only an executable version for Linux and others, and that's it. No installer or anything; you just download it and run it. The easiest way is to just put the .jar into a desktop, open the terminal and input these commands:
cd $HOME/Desktop
chmod +x Minecraft.jar
The last command will make the .jar executable, so you will be able to launch it with just a double click on the file. That's the real easiest solution, so you're on your own if you want it to still put it in the Dash screen or similar something (assuming you're running the normal Ubuntu).
Please help. I have tried the instructions above (with Oracle Java), but can't get it to work on Ubuntu xenial 16.04
When I hit the "Play" button in the Minecraft launcher, I get the following crash report:
---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.
Time: 10/24/16 11:30 PM
Description: Initializing game
java.lang.ExceptionInInitializerError
at bcx.ar(SourceFile:624)
at bcx.an(SourceFile:432)
at bcx.a(SourceFile:381)
at net.minecraft.client.main.Main.main(SourceFile:124)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.lwjgl.opengl.XRandR.findPrimary(XRandR.java:326)
at org.lwjgl.opengl.XRandR.ScreentoDisplayMode(XRandR.java:315)
at org.lwjgl.opengl.LinuxDisplay$3.run(LinuxDisplay.java:746)
at org.lwjgl.opengl.LinuxDisplay$3.run(LinuxDisplay.java:743)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:743)
at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
... 4 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Client thread
Stacktrace:
at bcx.ar(SourceFile:624)
at bcx.an(SourceFile:432)
-- Initialization --
Details:
Stacktrace:
at bcx.a(SourceFile:381)
at net.minecraft.client.main.Main.main(SourceFile:124)
-- System Details --
Details:
Minecraft Version: 1.10.2
Operating System: Linux (amd64) version 3.8.11
Java Version: 1.8.0_111, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 47944712 bytes (45 MB) / 153300992 bytes (146 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 5 total; -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
Launched Version: 1.10.2
LWJGL: 2.9.4
OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
GL Caps:
Using VBOs: Yes
Is Modded: Probably not. Jar signature remains and client brand is untouched.
Type: Client (map_client.txt)
Resource Packs:
Current Language: ~~ERROR~~ NullPointerException: null
Profiler Position: N/A (disabled)
CPU: <unknown>
These instructions worked perfectly under precise and trusty, but are failing under xenial.
You apparently can install it, so that doesn't belong here. The next time you get that cash, there should be a button to report it to the bugtracker, if not, you can report it yourself, just give all the information you have here. bugs.mojang.com
to simply make the Java archive executable with a double-click, but another method you can use is to write a .sh file (make a text document, write the following code in, and save it as a .sh instead of as a .txt) containing the following:
java -Xmx(x)G -Xms(x)G -jar Minecraft.jar
Where (x) would represent the amount of memory, in gigabytes, you want to allocate to Minecraft. If you want to keep things simple, just use the same amount for both arguments, and I recommend something like 4 gigabytes. This .sh file basically executes this as if you typed it into a terminal. It executes no differently from the user's perspective than the first method. It allows you, however, to easily customize your Java arguments to fit your system. When the .sh file is saved, just double-click it and the launcher will open.
Also, I've never had anything but unpleasant experiences with OpenJDK. It's probably fine and, like most of the living hell that was my experience with Linux, was the fault of the computer I was using it on. However, I personally recommend using the Oracle version because it was much more stable in my experience.
Hope this helps.
EDIT: Completely spaced it and saw how old this thread was. Still, useful information, if a bit late.
When I go to the download page for Minecraft on Linux, I get a .jar file.
I think I have installed Java correctly, because when I type "java" into console, I get usage help.
But how do I start Minecraft now? When I try to execute it with Java from the file explorer, nothing happens.
When I go into the folder in console and enter "java -jar Minecraft.jar", as I've read somewhere, it gives me the following output immediately:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f0df2e6d009, pid=3055, tid=3056
#
# JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-04-14-195246.buildd.src)
# Java VM: OpenJDK 64-Bit Server VM (9-internal+0-2016-04-14-195246.buildd.src, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C [libjava.so+0x1d009] JNU_GetEnv+0x19
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /home/fabian/Downloads/core.3055)
#
# An error report file with more information is saved as:
# /home/fabian/Downloads/hs_err_pid3055.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
I knew that it would be a bit more complicated than just installing it from the software center, since it's not in there, but I can't get it working at all. Everything I found so far regarding tutorials or help forums either sounds like it's the easiest thing ever ("Execute with Java" Haha) or is for something way more complicated (programming an own launcher, ...).
So my question is just: How do I start Minecraft?
(P.S.: Unpacking it doesn't look right, too. There's nothing to execute.)
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumwhat java do you have installed? openjdk or oracle java? and did you install it from a repo (=software center) or from oracle.com?
I took the "Linux x64" version from www.java.com/de/download/linux_manual.jsp , because from a quick research the "RPM" version didn't look like what I wanted. Then I followed the instructions that are linked next to the download:
tar zxvf jre-8u91-linux-x64.tar.gz
and then
sudo apt-get install openjdk-9-jre
. It wasn't in the Software Center, I don't know why.
Sadly I can't remember where I found it but do a search online for Minecraft on Ubuntu. At least for versions before the current someone had made a community installer (like exists for Chrome). Its a couple commands you type into the terminal and it installs everything even giving a shortcut to launch the game.
EDIT: Found it!
http://www.omgubuntu.co.uk/2013/04/minecraft-installer-for-ubuntu
Get rid of openjdk-9-jre by inputting this command:
Java 9 is on early alpha and it's not yet released to the public (at the time I typed this). I don't know why you would download a tarball of Java 8, but then install Java 9.
Here's the easier way: Input these following commands on the terminal. Purge Java 9 first, as I said, it's on alpha and it's not yet released to the public.
After a while, the screen will change, telling you to agree to the Oracle terms first before any real installation begins. There's no mouse support, so use your arrow keys on the keyboard and press the "ENTER" key to select something.
Once it's installed, Minecraft should run fine. You may need to right click, and open with "Oracle Java 8 Runtime" (also, check the box to set it as default) to get it to work.
Make sure it is working (type in "java -version" without the quotes). If it says "java version 1.8.0_insertversionhere", then you're good to go.
Source: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
EDIT: Ninja'd, but whatever. xD
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumfrom my and other's experience oracle java runs more stable. just try both
@dadiko39 Thanks, that worked! Now I have to figure out how to put it in the quickstarter, but I can probably figure that out myself.
@JaxtonDragoon That sounds good, but dadiko39's solution already worked pretty good. Maybe someone in the future who finds this post can find it useful.
Interestingly I can't get fps over 60 now, even with VSync off. But who needs that anyway? It was nice being able to say that I get more than 6000, but whatever.
Advantage is that window resize works after exiting fullscreen (doesn't work on Windows, MC-68754).
Hm, it seems to not be so easy. Does anyone have an easy solution to put Minecraft.jar into the starter?
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumwould be interesting to know. i tried it some time but ended up with the .jar on my desktop
Again, as said by the OP, my solution already worked. Even Mojang recommends using Oracle's Java mentioned in the download page for best results.
Unfortunately, this is not possible to do so. There's only an executable version for Linux and others, and that's it. No installer or anything; you just download it and run it. The easiest way is to just put the .jar into a desktop, open the terminal and input these commands:
The last command will make the .jar executable, so you will be able to launch it with just a double click on the file. That's the real easiest solution, so you're on your own if you want it to still put it in the Dash screen or similar something (assuming you're running the normal Ubuntu).
Please help. I have tried the instructions above (with Oracle Java), but can't get it to work on Ubuntu xenial 16.04
When I hit the "Play" button in the Minecraft launcher, I get the following crash report:
---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.
Time: 10/24/16 11:30 PM
Description: Initializing game
java.lang.ExceptionInInitializerError
at bcx.ar(SourceFile:624)
at bcx.an(SourceFile:432)
at bcx.a(SourceFile:381)
at net.minecraft.client.main.Main.main(SourceFile:124)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.lwjgl.opengl.XRandR.findPrimary(XRandR.java:326)
at org.lwjgl.opengl.XRandR.ScreentoDisplayMode(XRandR.java:315)
at org.lwjgl.opengl.LinuxDisplay$3.run(LinuxDisplay.java:746)
at org.lwjgl.opengl.LinuxDisplay$3.run(LinuxDisplay.java:743)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:743)
at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
... 4 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Client thread
Stacktrace:
at bcx.ar(SourceFile:624)
at bcx.an(SourceFile:432)
-- Initialization --
Details:
Stacktrace:
at bcx.a(SourceFile:381)
at net.minecraft.client.main.Main.main(SourceFile:124)
-- System Details --
Details:
Minecraft Version: 1.10.2
Operating System: Linux (amd64) version 3.8.11
Java Version: 1.8.0_111, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 47944712 bytes (45 MB) / 153300992 bytes (146 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 5 total; -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
Launched Version: 1.10.2
LWJGL: 2.9.4
OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
GL Caps:
Using VBOs: Yes
Is Modded: Probably not. Jar signature remains and client brand is untouched.
Type: Client (map_client.txt)
Resource Packs:
Current Language: ~~ERROR~~ NullPointerException: null
Profiler Position: N/A (disabled)
CPU: <unknown>
These instructions worked perfectly under precise and trusty, but are failing under xenial.
Also graphics card info is:
(xenial)[email protected]:~$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
I also tried running this command to make sure the Intel graphics drivers were installed but the problem persists:
You apparently can install it, so that doesn't belong here. The next time you get that cash, there should be a button to report it to the bugtracker, if not, you can report it yourself, just give all the information you have here. bugs.mojang.com
Hi! I followed this updated guide on how to install java oracle on ubuntu 16.04! hope it helps!!
You can use
to simply make the Java archive executable with a double-click, but another method you can use is to write a .sh file (make a text document, write the following code in, and save it as a .sh instead of as a .txt) containing the following:
Where (x) would represent the amount of memory, in gigabytes, you want to allocate to Minecraft. If you want to keep things simple, just use the same amount for both arguments, and I recommend something like 4 gigabytes. This .sh file basically executes this as if you typed it into a terminal. It executes no differently from the user's perspective than the first method. It allows you, however, to easily customize your Java arguments to fit your system. When the .sh file is saved, just double-click it and the launcher will open.
Also, I've never had anything but unpleasant experiences with OpenJDK. It's probably fine and, like most of the living hell that was my experience with Linux, was the fault of the computer I was using it on. However, I personally recommend using the Oracle version because it was much more stable in my experience.
Hope this helps.
EDIT: Completely spaced it and saw how old this thread was. Still, useful information, if a bit late.