1
當創建用於MacOSX的一個SWT應用程序的安裝,使用64位的JRE,我們得到一個 org.eclipse.swt.SWTException:Install4j無效的線程訪問
Invalid thread access that we can trace to a line:
Display display = new Display().
The error occurs when the application is launched after installation.
相同的程序工作正常在開發中以及使用Install4j.
創建的任何Windows安裝中除了確保爲目標平臺包含適當的SWT jar之外,是否還有什麼不同之處需要使用Mac OSX installer
來完成?
事實上,這似乎是本地化的,用Install4j安裝後在MacOSX上啓動。
這已被檢查,以及'如果在主線程中引發異常'失敗'。 – user3223978
請嘗試將VM參數-XstartOnFirstThread添加到啓動器 –
謝謝Ingo。這工作完美。我感謝您的幫助。 – user3223978