Skip to content

Instantly share code, notes, and snippets.

@robc
Created February 21, 2014 21:58
Show Gist options
  • Save robc/9144373 to your computer and use it in GitHub Desktop.
Save robc/9144373 to your computer and use it in GitHub Desktop.
# OS X Launch Script for Quarries of Scred.
# This allows the game to be started from Finder,
# as .sh scripts can't be launched in this way.
#!/bin/sh
cd "$(dirname "$0")"
java -classpath "lib/*:.:quarry.jar" Quarry
@sean-perryman
Copy link

I really appreciate you putting this up! I am getting this error when I run the script (after running chmod u+x Quarry.command):

Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1764)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1044)
at org.lwjgl.Sys$1.run(Sys.java:73)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
at org.lwjgl.Sys.loadLibrary(Sys.java:95)
at org.lwjgl.Sys.(Sys.java:112)
at org.lwjgl.opengl.Display.(Display.java:132)
at org.newdawn.slick.AppGameContainer$1.run(AppGameContainer.java:39)
at java.security.AccessController.doPrivileged(Native Method)
at org.newdawn.slick.AppGameContainer.(AppGameContainer.java:36)
at Quarry.main(Quarry.java:159)
logout

Is this something I need to install on my Mac? There is a jar that looks like it should be in the lib directory, perhaps it isn't pulling up right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment