Jump to content
  • 0

Mac OS X Lion messes up tekkit 2.1.1 serve startup file


Question

Posted

Here's what i figured out, the server won't run because java se 6 and jdk 7 are both installed on my computer, most apps run on java se 6, so that's the default, but 2.1.1 needs jdk 7, i need to know how to direct a command file to use jdk 7 instead of java se 6. This is the command i've been using:

#!/bin/bash

cd "$(dirname "$0")"

exec java -Xmx10G -Xms10G -jar Tekkit.jar

3 answers to this question

Recommended Posts

  • 0
Posted

Thats not necessarily a mac specific problem. My server was doing the same thing until I uninstalled the other version of java. If you know the location of the jre7 you should be able to command it to run that java instead of just saying "run java" and letting it find the version. If it was windows I would say to change the command line to: "C:\Program Files\Java\jre7\bin\java.exe -Xmx10G -Xms10G -jar Tekkit.jar" Or wherever your java is located. You may have to specify the path for the tekkit jar actually after doing that, not sure. Not even sure if that would work, just a thought. The easier way of course would be to just uninstall jre6 hehe

  • 0
Posted

I fixed it somehow, if you have this problem go to spotlight and search for java preferences, then move jdk 7 to the top instead of the bottom.

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...