How can I do this?
#!/bin/bash
java -jar -Djava.library.path=lib CastleWars.jar
It errors with unable to access CastleWars.jar
How can I get unix to recognise where the .command file is being launched from and then put that path in front of CastleWars.jar?
GOT IT!
#!/bin/bash
java -jar -Djava.library.path="$_/../"lib "$_/../"CastleWars.jar
#!/bin/bash
java -jar -Djava.library.path=lib CastleWars.jar
It errors with unable to access CastleWars.jar
How can I get unix to recognise where the .command file is being launched from and then put that path in front of CastleWars.jar?
GOT IT!
#!/bin/bash
java -jar -Djava.library.path="$_/../"lib "$_/../"CastleWars.jar
Last edited: