I have a similar problem when I try to run Eclipse CDT 4.1.1 (with a pair of 4.2.2 and several native plug-ins) from Eclipse SDK 4.2.2 on 32-bit Java 7 VM on 32-bit Windows Vista. I am not sure what is the main reason, but I can reliably reproduce and solve it by following these steps.
- Install a new target platform definition or reload the existing one.
- Try to run the JUnit4 plugins in debug mode (Ctrl + F11) and watch for everything that works well.
- Restart Eclipse.
- Repeat step 2 and get the same java.lang.IllegalStateException as the theme starter.
- Reload the definition of the target platform and click “OK.” “Target definition from synchronization: the active target platform is not synchronized with the file system. Clicking the ok button on the settings page will update the target platform”
- Repeat step 2 and note that the error has disappeared again.
Since I am not getting this error in a similar scenario with Eclipse 3.6, I would suggest that the target platform code in Eclipse Juno does not handle NTFS file timestamps very well. So, when the Eclipse instance is loaded, the modified package was erroneously detected, and an attempt to reinstall it was made, which will lead to this error later.
Summary: try restarting the target platform if you get this error.
source share