Fedora Linux Support Community & Resources Center
  #1  
Old 9th October 2012, 11:52 PM
ImJello Offline
Registered User
 
Join Date: Oct 2012
Location: USA
Posts: 13
linuxfirefox
Minecraft on Fedora 17

I 've seen this question asked a few times but i don't understand what to do exactly because i'm new to linux. I have java 1.7 installed and want to run it on Fedora 17.

this is what i found as a possible solution...

Code:
export LD_LIBRARY_PATH="/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/lib/amd64"
/usr/bin/java -jar minecraft.jar

I don't know what to do next. I tried saving it as a .sh then executing but that didn't work. Any help is greatly appreciated.
Reply With Quote
  #2  
Old 10th October 2012, 12:01 AM
JamesNZ Offline
Registered User
 
Join Date: Aug 2010
Location: Wellington, New Zealand
Age: 17
Posts: 907
linuxchrome
Re: Minecraft on Fedora 17

I believe you just run
Code:
java -jar AppName.jar
__________________
"For what is a man profited if he gains the whole world, but loses his own soul?"

- Jesus
Reply With Quote
  #3  
Old 10th October 2012, 02:46 AM
ImJello Offline
Registered User
 
Join Date: Oct 2012
Location: USA
Posts: 13
linuxfirefox
Re: Minecraft on Fedora 17

Quote:
Originally Posted by JamesNZ View Post
I believe you just run
Code:
java -jar AppName.jar
"Unable to access jar file"

---------- Post added 10th October 2012 at 01:46 AM ---------- Previous post was 9th October 2012 at 11:25 PM ----------

Still trying to figure it out any help would be great...=/ i thought it was just something silly i was doing.
Reply With Quote
  #4  
Old 10th October 2012, 04:38 AM
scottknight Online
Registered User
 
Join Date: Aug 2004
Location: Allison Park, PA, USA, Earth, Solar System, Milky Way
Age: 48
Posts: 16
windows_7chrome
Re: Minecraft on Fedora 17

Here is the script that I created for my kids' computers:

/usr/share/minecraft/minecraft
Code:
#!/bin/bash

ID=`id -un`
echo "start minecraft: `date +%Y%m%d\ %H%M`" >> /var/tmp/minecraft.${ID}.log
export LD_LIBRARY_PATH="/usr/java/jre1.7.0_05/lib/amd64"
/usr/java/default/bin/java -Xmx1024M -Xms512M -cp /usr/share/minecraft/minecraft.jar net.minecraft.LauncherFrame
echo "stop minecraft:  `date +%Y%m%d\ %H%M`" >> /var/tmp/minecraft.${ID}.log
I tried to make it more generic by symlinking /usr/java/default, but it didn't work and I have no idea why. When Java gets an update, I will be hand-editing the script.

Just in case you wanted a handy Gnome 3 icon, this works for me:

/usr/local/share/applications/minecraft.desktop
Code:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=false
Exec=/usr/share/minecraft/minecraft
Name=Minecraft Comment=Launcher for Minecraft
Icon=/usr/share/minecraft/minecraft.svg
__________________
Scott Knight

Last edited by scottknight; 10th October 2012 at 11:42 AM.
Reply With Quote
  #5  
Old 12th December 2012, 08:00 PM
Ihatewindows Offline
Banned
 
Join Date: Oct 2012
Location: Fort Wayne, IN
Posts: 1,135
macossafari
Re: Minecraft on Fedora 17

I've seldom heard of Minecraft, but I found that there's a Windows version. Try
Code:
sudo yum install wine
and install Minecraft for Windows in there.
Reply With Quote
  #6  
Old 12th December 2012, 09:13 PM
ImJello Offline
Registered User
 
Join Date: Oct 2012
Location: USA
Posts: 13
windows_7firefox
Re: Minecraft on Fedora 17

Quote:
Originally Posted by Ihatewindows View Post
I've seldom heard of Minecraft, but I found that there's a Windows version. Try
Code:
sudo yum install wine
and install Minecraft for Windows in there.
Thanks i've successfully used wine before on my old computer. I'll try that after i get my networking dillema solved.
Reply With Quote
  #7  
Old 12th December 2012, 09:30 PM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,027
linuxfirefox
Re: Minecraft on Fedora 17

Quote:
Originally Posted by ImJello View Post
"Unable to access jar file"

---------- Post added 10th October 2012 at 01:46 AM ---------- Previous post was 9th October 2012 at 11:25 PM ----------

Still trying to figure it out any help would be great...=/ i thought it was just something silly i was doing.
That suggests to me that the path to the file was wrong or it was set unreadable on the permissions
Reply With Quote
  #8  
Old 13th December 2012, 12:49 AM
jswmcw Offline
Registered User
 
Join Date: Jan 2011
Location: Ohio
Posts: 45
linuxfirefox
Re: Minecraft on Fedora 17

Quote:
Originally Posted by Ihatewindows View Post
I've seldom heard of Minecraft, but I found that there's a Windows version. Try
Code:
sudo yum install wine
and install Minecraft for Windows in there.
Minecraft is platform agnostic. It's written in Java. No reason to try to install the Windows version.

To the OP, I have Minecraft installed on my F17 laptop. I don't remember doing anything special to run it. I start it all the time just like below:
Code:
java -Xmx1024M -Xms1024M -cp /path/to/minecraft.jar net.minecraft.LauncherFrame
__________________
:C
"Anybody who tells me I can't use a program because it's not open source, go suck on rms. I'm not interested. 99% of that I run tends to be open source, but that's _my_ choice, dammit." -- Linus Torvalds, 2004.

Last edited by jswmcw; 13th December 2012 at 12:55 AM.
Reply With Quote
  #9  
Old 16th December 2012, 08:52 AM
steelaworkn Offline
Registered User
 
Join Date: Dec 2008
Location: Pacific Northwest
Age: 47
Posts: 1,139
linuxfirefox
Re: Minecraft on Fedora 17

Actually, you don't have to use Wine at all. We are trying to get around Windose here. So what you need to do is download the Minecraft .jar file to a directory of your choice say...Minecraft like this:

Download or move the minecraft.jar file to /home/youtheuser/Minecraft then:
type: $cd /home/youtheuser/Minecraft
then type:
$java -jar minecraft.jar

It is that simple. If you want to run the server, download the server to the file say MCServer and cd to that by:
$cd /home/youtheuser/MCServer
$java -jar minecraftserver.jar

There you have it. If you are having memory trouble, you can add a little control by typing:
$java -jar -Xms1024M -Xmx2048M minecraftserver.jar or minecraft.jar

You can tweak the memory by doing
$java -Xms2G -Xmx4G -jar minecraft_server.jar or
$java -Xms2G -Xmx4G -jar minecraft.jar

Make sure you have enough RAM for the tweaking, otherwise, you will crash you system. For the server, make sure you ports are open so people can see the server outside you home. Happy crafting.

---------- Post added at 01:52 AM ---------- Previous post was at 01:47 AM ----------

Oh, and just an FYI, my son runs W7 and I run F17. He copies his server files to my computer when he has gaming parties. I can run his minecraft server on my box without any issues. Why? Because it is Java and runs on anything.

I just create file for his server like "MySonsMCServer" and then copy his server files to that and then cd to that new file, then java ***.jar his minecraft.server. It is that simple. I'm sure glad the MInecraft people created the game on Java. Fun stuff.
__________________
My setup:

Intel DP35DP MB; Nvidia 440 2 gig Video Card; 8 gigs of ram; Intel Core Duo 2.20 gig; Hp Officejet Pro L7580; LVM F20 64bit using 3 320g HDs and dual monitors.
Reply With Quote
  #10  
Old 21st March 2013, 09:34 AM
drakfyr13 Offline
Registered User
 
Join Date: Mar 2013
Location: Colorado,USA
Posts: 3
windows_7chrome
Re: Minecraft on Fedora 17

im fairly new to using fedora, so it may just be that i'm missing something. when i use the "java -jar minecraftserver.jar" it gives me "unable to access jarfile mineraftserver.jar". could you help me?
Reply With Quote
  #11  
Old 21st March 2013, 10:35 PM
drakfyr13 Offline
Registered User
 
Join Date: Mar 2013
Location: Colorado,USA
Posts: 3
windows_7chrome
Re: Minecraft on Fedora 17

Never mind, I got it to work.
Reply With Quote
  #12  
Old 12th June 2013, 05:55 PM
GabbyGreat123 Offline
Registered User
 
Join Date: Jun 2013
Location: united states
Posts: 1
windows_7safari
Re: Minecraft on Fedora 17

Quote:
Originally Posted by drakfyr13 View Post
Never mind, I got it to work.
Can you please explain how you got it working? Im having the same problem.

Why can't real life be like minecraft, then i could just craft my way out of this! LOL
Reply With Quote
  #13  
Old 28th June 2013, 01:12 AM
drakfyr13 Offline
Registered User
 
Join Date: Mar 2013
Location: Colorado,USA
Posts: 3
windows_7chrome
Re: Minecraft on Fedora 17

its been a while, so please forgive me if i'm wrong. i think i just had to navigate through the folders through the terminal until i reached the folder containing the minecraft file.
Reply With Quote
  #14  
Old 28th June 2013, 02:13 AM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,027
linuxfirefox
Re: Minecraft on Fedora 17

Quote:
i think i just had to navigate through the folders through the terminal until i reached the folder containing the minecraft file
You might want to look into relative and absolute paths

You can make a launcher icon for your desktop or run this from
a terminal and just point java to the file:

For example an absolute path would look like
Quote:

java -jar /home/username/games/minecraft/minecraft.jar
Reply With Quote
Reply

Tags
fedora, minecraft

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Minecraft and JRE architecture EddyNCFC Using Fedora 4 18th February 2012 07:35 PM
minecraft issue coreyscx Using Fedora 0 8th September 2011 01:04 AM
Minecraft low FPS help Adrian719 Gamers' Lounge 5 14th August 2011 05:46 PM
[SOLVED] Minecraft Help Needed (nobody on Minecraft forums had any idea) Abstract Gamers' Lounge 6 18th April 2011 11:11 PM
Minecraft Installation Help Guyman Using Fedora 2 15th January 2011 07:55 PM


Current GMT-time: 16:34 (Wednesday, 20-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat