I'm trying to make a .app that will run a simple bash script to launch a java app. I found instructions for making a suitable .app container and running the .app runs my bash. Great.
The problem is, I want to put my java app inside the .app but i'm not sure how to get my bash script to launch it.
Here's my current script:
#! /bin/sh
/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -jar -Xmx1g javaapp.jar&
The script runs and shuts down immediately. I'm assuming because it either can't find /java
or javaapp.jar
which I put in the .app container in the same folder as the bash script (MacOS
)