문제:
***WARNING: Display must be created on main thread due to Cocoa restrictions.
Exception in thread "main" org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:4361)
at org.eclipse.swt.SWT.error(SWT.java:4276)
at org.eclipse.swt.SWT.error(SWT.java:4247)
at org.eclipse.swt.widgets.Display.error(Display.java:1068)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:825)
at org.eclipse.swt.widgets.Display.create(Display.java:808)
at org.eclipse.swt.graphics.Device.<init>(Device.java:130)
at org.eclipse.swt.widgets.Display.<init>(Display.java:699)
at org.eclipse.swt.widgets.Display.<init>(Display.java:690)
at kr.or.utac.testAlienReader.TestAlienReaderUI.<init>(TestAlienReaderUI.java:148)
at kr.or.utac.testAlienReader.ExecuteTestAlienReader.main(ExecuteTestAlienReader.java:16)
해결:
-XstartOnFirstThread
'Development > Java' 카테고리의 다른 글
[iBatis] Delete statements cannot be executed as a query. (0) | 2014.02.05 |
---|---|
Non-terminating decimal expansion; no exact representable decimal result. (0) | 2013.09.23 |
PSD 포토샵 파일 Parser (0) | 2012.10.11 |
java.lang.VerifyError: class net.sf.cglib.core.DebuggingClassWriter (0) | 2012.08.16 |
웹 서비스의 동적 발견과 호출 (0) | 2012.03.23 |