Jump to content
  • 0

launch.sh on OSX doesn't set working directory properly [FIX]


Question

Posted

Title: launch.sh on OSX doesn't set working directory properly [FIX]

Version: 3.1.2

OS: OSX 10.7.4

Java Version: 7u7 x64

Description of Problem:

The instructions for a Tekkit server running OSX are to use launch.sh. A sh-script is not guaranteed to have its working directory set to its parent directory, but it's written assuming the contrary. To fix this, before starting your server for the first time, edit launch.sh to the following:

#!/bin/bash

java -Xmx3G -Xms2G -jar `dirname $0`/Tekkit.jar nogui




This solution applies to any Unix, Linux, or Mac OS that has the listed error message.



Error Messages:

Error:unable to access jarfile Tekkit.jar



Error Log:





0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...