Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

On carbon, how do I run an SWT application from the command line?

0
Posted

On carbon, how do I run an SWT application from the command line?

0

If you run a Java application that uses Carbon via JNI, the application is not registered with the OS as a ‘normal’ UI application. As a consequence, it has no entry in the dock and it cannot be activated. AWT (or Swing) based applications don’t have this problem because they seem to use undocumented SPI to register themselves. To work around this problem you’ll have to use the executable ‘java_swt’ that is part of the Eclipse distribution (you can find it inside the Eclipse application Eclipse.app/Contents/MacOS/java_swt). Basically it is a replacement for /usr/bin/java and the ‘JavaApplicationStub’ used in bundled applications.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123