Skip to content

Instantly share code, notes, and snippets.

@tterrag1098
Last active January 4, 2016 08:09
Show Gist options
  • Save tterrag1098/8593064 to your computer and use it in GitHub Desktop.
Save tterrag1098/8593064 to your computer and use it in GitHub Desktop.
Tutorial for OSX users with java 6 on launching TPPI
How to launch FTB_Launcher.jar with Java 7 on a mac.
Step 1: Download and install the Java 7 JDK (NOT JRE) from the following address:
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Click the bubble next to "Accept License Agreement", and then click "jdk-7u51-macosx-x64.dmg" which is to the right of "Mac OS X x64"
Once the download is finished, double click on "jdk-7u51-macosx-x64.dmg" wherever you have your downloads go to (it defaults to the Downloads folder in your Home folder, which is /Users/<your computer username>/Downloads), and it will mount the image.
From there, double click on "JDK 7 Update 51.pkg" to start the installation process, and follow the on screen prompts to finish the installation. There's no need to restart your computer after this, but if you want to anyways, it won't cause any harm.
You have now installed Java 7.
Step 2: Download the launch script from the following address:
https://mega.co.nz/#!nRhUCRBJ!CHG8fzQPskGRwj04k9lNNqtE9oh_SBkRlGFyarAHWJE
After downloading the file, copy it into the same folder that your FTB_Launcher.jar is in.
OPTIONAL: If you are worried about this file at all, you can open it in almost any text editor to see just what it says. You can also adjust whatever Java parameters you want here too.
Step 3: Attain the necessary permissions to launch the script:
Open the Terminal, it's in the Utilities folder in the Applications folder.
So you can open the Applications folder, scroll to the bottom, double click on the Utilities folder, then find Terminal and double click on it, or you can click Spotlight (the magnifying glass in the top right corner) and type Terminal, and open it.
From here, type "chmod u+x " (<don't forget that space) and drag ftb.sh (that you downloaded earlier) into the terminal window.
At this point, it will say something along the lines of:
chmod u+x /Users/<your username>/Desktop/ftb.sh
Once it does so, hit return. There will be no notification that it was successful, so as long as you don't get some sort of error, you're good to go.
Step 4: Now to launch FTB:
In order to launch FTB using Java 7, you will have to use this script. This means that if you just double-click on FTB_Launcher.jar, it will still launch in Java 6, so you have to open Terminal again, drag ftb.sh into the window, and hit return.
If you get "Error: Unable to access jarfile FTB_Launcher.jar" then you simply need to rename your FTB launcher to "FTB_Launcher.jar"
Also note that you have to keep ftb.sh in the same folder as FTB_Launcher.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment