I have a build file in my Eclipse projects. One of the things this file does is ask a question via a prompt, using the <input/> tag. Since upgrading to Eclipse Helios, this no longer works, as I’m getting the following error:
[input] ***WARNING: Display must be created on main thread due to Cocoa restrictions.
Invalid thread access
How can I fix this error?
Finally found a solution for this problem:
First, make sure your Java version is up to date (1.6.0.20 at the moment of writing this). Second, change your Ant runtime arguments by doing this:
-XstartOnFirstThread