It is currently 24 Aug 2025, 23:33
   
Text Size

New to Forge and Ubuntu. Need help installing.

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

New to Forge and Ubuntu. Need help installing.

Postby classiccars » 19 Oct 2013, 17:51

Having troubles running/installing forge 1.5.3 in ubuntu 13.04. I installed Java 1.7045(newest update) through the terminal. I cant run the .jar file.

I got it running on windows 7 but cant get it to work on ubuntu. Please give me all the terminal inputs so that I cant screw it up again.

Thanks everyone. I cant wait to play.
classiccars
 
Posts: 2
Joined: 19 Oct 2013, 17:40
Has thanked: 0 time
Been thanked: 0 time

Re: New to Forge and Ubuntu. Need help installing.

Postby demonnic » 02 Nov 2013, 06:11

There should be a forge.sh file which you can use to run Forge. If it doesn't work, trying opening a terminal and using cd to navigate to where forge.sh is kept on your filesystem, then typing

./forge.sh
demonnic
 
Posts: 13
Joined: 20 Aug 2013, 22:10
Has thanked: 0 time
Been thanked: 0 time

Re: New to Forge and Ubuntu. Need help installing.

Postby demonnic » 02 Nov 2013, 14:17

For a better solution, what I did was this:

I extract the tarball into $HOME/forge-<version> (so for the most recent beta it was /home/demonnic/forge-1.5.4 ).

Then I create a symlink called 'forge' in my home directory to the latest version of the program:

Code: Select all
rm $HOME/forge
ln -s $HOME/forge-1.5.4 $HOME/forge
I also made a modified version of their launcher script and placed it in my home directory, called forge.sh

Code: Select all
#!/bin/sh
cd $HOME/forge
java -Xmx1024m -jar `ls forge-*-jar-with-dependencies.jar`
If your java 7 executable is in a different place, just specify it on the third line instead of using just 'java'. For example, my actual line looks like this:

Code: Select all
 $HOME/jdk1.7.0_40/bin/java -Xmx1024m -jar `ls forge-*-jar-with-dependencies.jar`
since I keep both java6 and java7 installed and my system defaults to 6.

make the script executable

Code: Select all
chmod +x $HOME/forge.sh
And finally, create a launcher on your desktop by right-clicking on the desktop and choosing "Create Launcher" I believe it is, but their should be something similar in the right click menu of that's not correct. I'm not using unity for my window manager any more, as I'm not a huge fan.

Regardless, in the dialog for creating the launcher there'll be a section to fill out for the command to run. Use this:

Code: Select all
$HOME/forge.sh
Once you save the launcher, you should be able to just double click it to launch forge. When a new version comes out, just extract it to $HOME/forge-<version> and do the linking step above with the new directory, and the launcher will start launching the new version.

It's not the most elegant solution (I've considered writing a short 'installer' script which would handle most of this for you), but in the long run I find it makes updating my version of forge easy and with a minimal amount of maintenance or fussing around to start it.

I'll be happy to answer any questions you have about the process.
demonnic
 
Posts: 13
Joined: 20 Aug 2013, 22:10
Has thanked: 0 time
Been thanked: 0 time

Re: New to Forge and Ubuntu. Need help installing.

Postby Zirbert » 02 Nov 2013, 17:29

Kind of splitting the complexity difference, here's my process:

-Put the new version's .tar.bz file in your Home folder.

-Right-click it, and choose Extract Here. A new folder with the name of the newest version is created.

-Go into that folder, double-click Forge.sh, and choose Run in terminal.

As cleanup, at this point I usually put the .tar.bz file into the new folder, and delete the folder for the previous version once I've playtested the new version a little bit.
Zirbert
 
Posts: 512
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times


Return to Forge

Who is online

Users browsing this forum: No registered users and 57 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 57 users online :: 0 registered, 0 hidden and 57 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 57 guests

Login Form