This guide (Which took me a little over 3 days to write and test) was made to solve most problems regarding the correct installation of Minecraft. It is very thorough and oriented for Ubuntu 11.10+ since this was the first version to include OpenJDK 1.7, but it might still be missing more information to solve more problems regarding Minecraft.
I also did ...
Before running the command try entering:
Where path_to_java_home is the folder where your bin/java is.
If java is properly installed you can find it's location, by using the command:
readlink -f $(which java)
Don't forget to remove bin/java from the end of the path while putting it into JAVA_HOME
Setting up a Minecraft launcher on Ubuntu 12.04, these steps worked for me, mostly pieced together from the various other tips.
In a terminal, first fetch a Minecraft image icon:
cd /usr/share/icons; sudo wget http://images.wikia.com/yogbox/images/d/dd/Minecraft_Block.svg
Then create a minecraft.desktop file (using the gedit text editor to keep it user-...
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:
The script for my system:
You can make it manualy, or using Alacarte. Here's the way:
1: Install Alacarte
It will install some Gnome dependencies. Nothing to worry about.
2: Create a new entry
In the command entry, click browse and select your .jar file.
You may need to add /usr/bin/java -jar to the start of the Command, so that it looks like /usr/bin/java -jar /home/angel/...
The legal problems you are referring are about the distribution of Oracle Java. Its license prevents that it could be provided in the default repositories, but its perfectly legal to download and install it.
Probably the easiest way is to use the WebUpd8 ppa:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-...
You must installed java on your system to install .jar files.Syntax to install .jar files was,
java -jar packagename.jar
In this case,you have Minecraft.jar file,so type the below command in terminal
java -jar Minecraft.jar
Installation of Minecraft for 12.04, 12.10, 13.04, 13.10, 14.04, 14.10 and 15.04 is now possible with a PPA.
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer
sudo apt-get update && sudo apt-get install minecraft-installer
What are PPAs and how do I use them?
.jar files are not executable, so you have to open them with something (java):
Exec=java -jar /home/benjamin/Applications/Minecraft/TechnicLauchner/technic-launcher-latest.jar
Anyway, I wouldn't recommend creating those files manually from scratch.
To make it automatic on Linux/Ubuntu, add these lines at the end of your .bashrc:
JAVA_HOME=$(dirname $( readlink -f $(which java) ))
This gets java executable, then climbs up a directory level
To designate the default java version/executable on Debian/Ubuntu, run this once:
sudo update-alternatives ...
Pressing control-H in Nautilus will show also files starting with a ..
If you want this permanent: Files > Preferences will have a setting for this:
In command line ls -la the a part will also show hidden files.
Edit your Java arguments (Profile Settings) for starting the game and get rid of CMSIncrementalMode. If your using Java 8 you don't really need any arguments. If you have not installed Java Look here...Install Java 8
Ubuntu would be a superior choice for hosting a server based application, especially if you use the server edition of Ubuntu. There would be less resources diverted to unnecessary things, like the desktop interface. The downside is that it would be command line only. You can always still go with Ubuntu desktop if you need a desktop interface.
To setup a ...
You can install OpenJDK by pressing this link. After, open Minecraft with right-click in Minecraft.jar > Open with > OpenJDK Java 7 Runtime.
If it's still not working, press this link, and do the same as before.
Found this on a Fedora forum and it worked nicely for me running 12.04 Ubuntu-64bit with OpenJDK7u3
"I just had the same problem, and here is what worked for me:
Go to http://lwjgl.org/download.php
Click the link to download the newest stable release
Download lwjgl-x.x.x.zip (lwjgl-2.8.3.zip at the time of writing)
Go to your home ...
What you want to do is use screen. It allows spawning a process inside its session and detaching from it. Essentially , your question is similar to this.
The 3 steps that you want to do:
The line below has to go into your /etc/rc.local. Add & sign at the end of it ( important !)
screen -S MyMinecraftServer -d -m java -jar ./SOMEFILES/CLEANUP/...
Here's a script to install minecraft and help troubleshoot most issues that can arise:
To get minecraft running, right click the minecraft.jar file, go to properties, permisions, and set it allow running as an executable. Now you can right click it, and run with a java.
If you want to properly have minecraft installed: have its icon, be able to launch with ...
I play minecraft and I fixed the issue by:
Using oracles version of java by using the wepupd8 teams java ppa. Follow this tutorial:
Then try this in terminal
java -jar technic-launcher-latest.jar
Patching LWJGL in Minecraft (Linux)
Download the LWJGL files
Go to the LWJGL download page and download the latest stable release.
Open the .zip in Archive Manager.
The jars are found in "jar" and the natives are found in "natives/linux"
Patch the LWJGL files by doing the following
Open your home directory (You can usually just do this by opening the ...
Download the latest copy of LWJGL from here http://lwjgl.org/download.php and extract it
Copy the following to ~/.minecraft/bin
And the following to ~/.minecraft/bin/natives
Then restart Minecraft
Make sure you overwrite the ...
You can create a .desktop file that will do this. Bash file are usually run from the terminal, while .desktop files simply run a command, not necessarily needing a Terminal.
As for launching Minecraft, that's simple enough.
Run nano ~/.local/share/applications/minecraft.desktop in Terminal
Copy/paste this in to the file you just opened:
The proper way to use a portable app like this under Ubuntu requires also creating a "*.desktop" file for its executable (which is "Minecraft.jar" in this case), and putting it in one of these folders: /usr/share/applications, /usr/local/share/applications, or /home/jay/.local/share/applications (which looks like the one you would prefer).
If you want a "...
All I did was go to: https://minecraft.net/download and select "Show All Platforms". Next I clicked and downloaded the Minecraft.jar file. Thats it.
Just be sure you have Java installed. You also may need to click the Minecraft.jar file properties and change the file to launch as an executable.
There may be other ways but this has worked for me.
There is a much easier way to do this. Go to the software centre and search for the package "Main menu" and install it. Also, go to Google images and find a PNG of the minecraft icon: here's one:
PNG of minecraft icon
Download (save) the PNG and minecraft.jar. I suggest put it in the Home Folder.
Open up "Main Menu" by hitting the Dash BFB and search for ...
You did not specify how you added your cronjob. This makes a big difference: if you've used crontab -e within your own account, scripts are run with your user (and thus the crontab entry has one field less -- the user to run it, as that is known). If you simply copied your above snippet to /etc/cron.d, it would fail as you didn't specify a user (or rather as ...