I\'ve written a Java SWT application for OS X, exported it as a .jar and bundled it into .app. Everything works just as expected except for a critical part within my app; it req
I'm answering this myself because the problem was my own setup. Specifically it was the bundled runtime I was using. I wrote a more in-depth answer in my other question here:
Java on OS X: “open” command won't run if .app package contains a JVM bundle
If steam:
is a registered URL type, you can use org.eclipse.swt.program.Program#launch(String)
. For example:
org.eclipse.swt.program.Program.launch("steam://rungameid/57300//");