OS X Java .app bundle cannot open other apps?

前端 未结 2 2009
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-28 11:52

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

相关标签:
2条回答
  • 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

    0 讨论(0)
  • 2021-01-28 12:04

    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//");

    0 讨论(0)
提交回复
热议问题