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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...