Two minor issues and solutions for eclipse RCP

Source: Internet
Author: User

1. If you want to applyProgramUse the resource navigator provided by ECLIPSE (which is part of the IDE plugin). Add the following to workbenchadvisor:CodeOtherwise, the new project and file name in Navigator will become empty:

Workbenchadapterbuilder. registeradapters ();

I
Can be added to the prewindowopen () method, otherwise you may need to manually refresh to see the existing project. Of course, you still need
Add org. Eclipse. UI. IDE and org. Eclipse. UI. Views to dependencies, so your RCP program will become larger.
Yes. Currently, resourcenavigator is not encouraged to be used in RCP programs. Later versions of eclipse may provide more suitable plug-ins.

2. If you encounter the following exceptions when running RCP application:

Java. Lang. nosuchmethodexception: COM. Your. yourplugin. < Init > (Org. Eclipse. Core. runtime. iplugindescriptor)
At java. Lang. Class. getconstructor0 (unknown source)
At java. Lang. Class. getconstructor (unknown source)
At org. Eclipse. Core. Internal. plugins. plugindescriptor. internaldopluginactivation (plugindescriptor. Java: 403 )
At org. Eclipse. Core. Internal. plugins. plugindescriptor. dopluginactivation (plugindescriptor. Java: 359 )

Or:

Org. Eclipse. Core. runtime. coreexception [ 1 ]: Java. Lang. classnotfoundexception: COM. Your. yourapplication
At org. Eclipse. osgi. Framework. Internal. Core. bundleloader. findclass (bundleloader. Java: 404 )
At org. Eclipse. osgi. Framework. adaptor. Core. abstractclassloader. loadclass (abstractclassloader. Java: 93 )
At java. Lang. classloader. loadclass (unknown source)
At org. Eclipse. osgi. Framework. Internal. Core. bundleloader. loadclass (bundleloader. Java: 307 )

Check whether org is added to plugin dependencies. eclipse. core. runtime. compatibility, I don't know what this plug-in is for, but it cannot be started as long as it is available in my RCP application.
Finally, if you want to display logs in the eclipse console rather than writing them directly to the file, you can add the-consolelog parameter at runtime.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.