Community
Participate
Working Groups
When trying to run Eclipse 3.2.1 recompiled in 1.6 target (see bug 169017 and bug 171472), using a JDK7b06 VM, it failed almost immediately. I'll attach the log. The reason of the failure is the missing J2SE-17 profile in the plugin org.eclipse.osgi. Pascal added it based on the 1.6 profile and I could then successfully start Eclipse.
Created attachment 57595 [details] Log file The log of the failure. This error should be reported more nicely and we might implement a fallback mecanism. When a profile is missing, we could revert to a "default" profile.
Created attachment 57596 [details] Profile defined by Pascal Once this file is added to org.eclipse.osgi_3.2.1.R32x_v20060919.jar. I can start Eclipse.
In the 3.3 release we default back to the highest compabible profile if the there is not one available that matches the EE we are running on. In this case we would fall back to the JavaSE-1.6 profile. We have also improved the error message and handling in 3.3 for this case. The error was occuring because we did not fall back to a profile and did not set any value for the EE. This caused the system bundle to not be resolved because it states it needs the OSGi/Minimum-1.0 EE. We now properly fall back to the next best profile. If all else fails we at least set the EE to OSGi/Minimum-1.0 so that the system bundle is allowed to resolve.
If adding the attached profile fixes the case for 3.2.x build, you might want to add it for 3.2.2.