ArrayIndexOutOfBoundsException in com.ibm.icu.text.BreakDictionary.main in SWT Application

跟風遠走 提交于 2019-12-02 11:32:48

问题


I am getting

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at com.ibm.icu.text.BreakDictionary.main(BreakDictionary.java:40)

When I run/debug my SWT program in Eclipse. What might be causing this? When I put a breakpoint on the 1st line of my main(), it doesn't even seem to run till that point.

UPDATE

Even in a new SWT project, with a Application Window created from the template, without any changes, the error still occurs ...

If you want to see the code, http://pastie.org/3547493 (its whats generated from Eclipse with Google Window Builder Pro plugin)


回答1:


You are running the main method of BreakDictionary. In other words: you are running a completely different program and not the code you posted.




回答2:


In order to be sure that you are not running a different method from the dictionary class, you should right click on your class and run it as a Java application.



来源:https://stackoverflow.com/questions/9615352/arrayindexoutofboundsexception-in-com-ibm-icu-text-breakdictionary-main-in-swt-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!