Problem Exporting Eclipse RCP Product

Discussion in 'Java' started by Gibson, Jan 22, 2007.

  1. Gibson

    Gibson Guest

    Hi all,

    ich developed an RCP application with Eclipse 3.2.1 (Build id:
    M20060921-0945) and JRE 1.5.0.9-b03 on a win200 maschine, containig a
    couple of plugins
    1 plugin, containing the perspective and application
    2 plugins, for functionality
    1 Plugin, containing the product

    both the eclipse application and the product run in the ide.

    while exporting i get the following error:
    A Cylce was detected when generating classpath ...

    There are plugins mentioned which neither listed in the dependencies
    nor run ... nor target configuration.
    (i.g com.bdaum.aoModeling_1.1.2)

    If i drop all dependencies, the export works. But it generates a
    logs.zip. the log starts with the following error:
    The import org.eclipse cannot be resolved

    where ether the import comes from

    if i add the dependencies again, extract my jars und replace plugin.xml
    and manifest.mf, my application starts and generates the foolwing
    error:

    org.osgi.framework.BundleException: The activator
    de.myRcp.perspective.Activator for bundle de.myRcp.perspective is
    invalid
    at
    org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:141)

    at
    org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:962)

    at
    org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:317)

    at
    org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:256)

    at
    org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.preFindLocalClass(EclipseLazyStarter.java:86)

    at
    org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:409)

    at
    org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:188)

    at
    org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:334)

    at
    org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:386)

    at
    org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)

    at
    org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)

    at java.lang.ClassLoader.loadClass(Unknown Source)
    at
    org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:278)

    at
    org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)

    at
    org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1245)

    at
    org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:147)

    at
    org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:759)

    at
    org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)

    at
    org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)

    at
    org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:74)

    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)

    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)

    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)

    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)
    Caused by: java.lang.Error: Unresolved compilation problems:
    The import org.eclipse cannot be resolved
    The import org.eclipse cannot be resolved
    The import org.osgi cannot be resolved
    AbstractUIPlugin cannot be resolved to a type
    BundleContext cannot be resolved to a type
    BundleContext cannot be resolved to a type
    ImageDescriptor cannot be resolved to a type


    It doesnt matter if export an eclipse application or the product.

    thanks fpr any hints.

    best regards
    Gibson, Jan 22, 2007
    #1
    1. Advertising

  2. Gibson

    Gibson Guest

    Using Eclipse 3.2.0 solved the problem
    Gibson, Feb 1, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. G. Ralph Kuntz, MD

    Problem with Eclipse RCP example

    G. Ralph Kuntz, MD, Apr 27, 2006, in forum: Java
    Replies:
    7
    Views:
    4,055
    sshark
    Jul 21, 2006
  2. @CL
    Replies:
    0
    Views:
    317
  3. Replies:
    1
    Views:
    884
  4. padma
    Replies:
    0
    Views:
    347
    padma
    Oct 3, 2007
  5. Replies:
    4
    Views:
    319
    Phrogz
    Nov 2, 2007
Loading...

Share This Page