Community
Participate
Working Groups
Build Identifier: M20110909-1335 I'm developing an OSGI-based Swing application within Eclipse on Mac OS 10.6. I'm trying to get a JUnit Plug-In Test to run but the Swing application does not start because of the -XstartOnFirstThread command line parameter that is always being set, which I can see looking at the output of ps. I verified that the exact same command line Eclipse assembles works when executed outside of Eclipse without -XstartOnFirstThread. However, then, of course, the RemoteTestRunner fails because it attempts to connect to something that isn't listening (I assume that starting a JUnit Plugin Test run config opens a server socket to await the test results or something like that). At the moment I cannot think of any workaround other than wrapping a shell script around my java executable to remove the parameter but that would require configuring a separate JRE for this purpose which feels very hackish. Reproducible: Always Steps to Reproduce: Any app using Swing will not run as a JUnit Plug-In test on Mac OS X AFAIK
Moving to JDT/Debug
bug 211625 added support to not include the -XstartOnFirstThread argument via the Arguments tab when launching. Closing worksforme.