Search code examples
eclipsetargetrcpplatform

Using Eclipse 3.7 for developing Plugin based on Eclipse RCP 3.5


is it possible to use Eclipse 3.7 IDE for developing for the 3.5 platform? Or must I use Eclipse 3.5 IDE?

When I try to switch from Eclipse 3.5 IDE to 3.7 I get errors on projects, which were ok before: Archive for required library: 'C:/.../.metadata/.plugins/org.eclipse.pde.core/.external_libraries/xyz/os/win32/x86' in project 'projectname' cannot be read or is not a valid ZIP file projectname

What do I have to do to exchange the 3.5 IDE with a current one, but still develop for the 3.5 platform?

I hope my explanation did make sense and was understandable :)

Additional Info: - I never used the RCP before, now I must use it - It's no option to upgrade the target platform (3.5) - I searched the net and stackoverflow, but found no answers for using 3.7 and develop for target platform 3.5 (maybe nobody else has these problems or I used the wrong queries)

Cheers
Kai


Solution

  • I just resolved my problem :-)

    In my case, there was a plugin jar, that contained the java sources:

    jar
        com
        META-INF
        src
        plugin.xml
    

    It seems like eclipse is putting jars inside of plugin jars in the following directory:

    [WORKSPACE]\.metadata\.plugins\org.eclipse.pde.core\.external_libraries\...
    

    For my plugin, it tried to put the src folder in this directory - which somehow failed.

    After deleting the src folder inside the jar, the errors were gone.

    RCP == bag of pain :-)