SWT Exception when running jar: Exception in thread “main” org.eclipse.swt.SWTException: Invalid thread access

前端 未结 1 1003
眼角桃花
眼角桃花 2020-12-06 21:25

When executing my jar from terminal I am getting the following:

 ***WARNING: Display must be created on main thread due to Cocoa restrictions.
    Exception          


        
相关标签:
1条回答
  • 2020-12-06 21:47

    On a Mac you must specify the -XstartOnFirstThread command line option to get SWT to run correctly.

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