Although this seems like a rather obvious question, I couldn\'t find the answer anywhere online.
After I create the jar file, I can run it successfully using the com
You need Java WebStart, snippet from the link Java Web Start software provides the power to launch full-featured applications with a single click. Users can download and launch applications, such as a complete spreadsheet program or an Internet chat client, without going through lengthy installation procedures
There is a program on OS X called Jar Bundler that comes with your install of Xcode developer tools. You can use this to convert .jar files to native Mac OS X .app executables.
I would create a shell script to enclose it in terminal:
#!/bin/bash
java -jar yourjarfile.jar
read -p 'Hit [Enter] to continue...'
I added pause, but unless your java application is immediately reaching termination, it shouldn't be necessary (you can stop the shell script after the "java" line).