Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8189863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:25:36+00:00 2026-06-07T03:25:36+00:00

This question is a follow-up to this one . Paul Webster graciously helped me

  • 0

This question is a follow-up to this one. Paul Webster graciously helped me to figure out many of my issues, but one nagging issue remains, and I’m fairly certain it comes down to a classpath issue when I’m exporting the plugin, as opposed to when I’m debugging the plugin.

This is the dubious information I’ve figured out so far, by scraping up information from various sources on the Web (for which this page was an invaluable resource):

  • Plugins rely entirely on the Bundle-Classpath in the MANIFEST.MF file. If the class can’t be found in either the JRE System library, the plugin-dependencies, or in a folder or JAR in the Bundle-Classpath, a NoClassDefFound or NoClassFound exception will occur.
  • Use Require-Bundle only for bundles I’m creating. (In other words, bundles in my workspace. This means, my Require-Bundle list is going to be pretty short.)
  • Use Import-Package for 3rd-party packages that my bundle requires. This list can be fairly large, depending on how many 3rd-party packages I’m using.
  • If I need a 3rd-party package, and it isn’t exported, I need to create a bundle for it and export that package. Then, in the package that requires it, I need to import the exporting bundle.
  • If a bundle itself contains packages inside the bundle and exports them, never put these packages also into the Manifest as imported packages. (In other words, don’t re-export packages that are already exported by a bundle.)

(I’ll update the information above as the community corrects it.)

So, bearing all that in mind, I’ve reworked my MANIFEST.MF file so that it observes the rules above. Everything works beautifully when I debug the application. All classes are found, the plugin runs as expected, but things get ugly when I go to export the plug-in.

When I attempt to export the plugin, all the projects compile except one. The log file contains the following message:

# 7/3/12 10:09:57 AM EDT
# Eclipse Compiler for Java(TM) 0.A76_R36x, 3.6.2, Copyright IBM Corp 2000, 2010. All rights reserved.
----------
1. ERROR in E:\NotesDev\NotesPlugin\com.auth.lotusplugin.popdlg\src\com\auth\lotusplugin\popdlg\SettingsDialog2.java (at line 0)
    package com.auth.lotusplugin.popdlg;
    ^
The type com.ibm.rcp.swt.swidgets.SCoolBar cannot be resolved. It is indirectly referenced from required .class files
----------
1 problem (1 error)

Now, I’ve determined that com.ibm.rcp.swt.swidgets.SCoolBar is exported by com.ibm.rcp.swtex.win32_6.2.2.20100729-1241.jar, which also happens to be exported by com.ibm.rcp.jfaceex_6.2.2.20100729-1241.jar. In my project, I’ve done the following:

  1. Added com.ibm.rcp.jfaceex as an additional bundle to build.properties through the Dependencies tab.
  2. Added com.ibm.rc.swt.swidgets as an imported package on the Dependencies tab.

Nonetheless, the class cannot be found when I attempt to export the plugin. At this point, I am assuming that there is some fundamental difference between the way a plugin is compiled when it is debugged, versus when it is exported, and that I am unaware of what that difference is.

If someone could please help me to resolve this last issue I’d really appreciate it.

The relevant portions of MANIFEST.MF and build.properties files are included below for reference.

MANIFEST.MF

Require-Bundle: com.ibm.lotuslabs.context.service,
 com.ibm.lotuslabs.ui,
 com.SatuitCRM.WebServices
Import-Package: com.ibm.rcp.jface.action,
 com.ibm.rcp.swt.swidgets,
 javax.swing,
 lotus.domino,
 lotus.notes,
 org.eclipse.jface.action,
 org.eclipse.jface.window,
 org.eclipse.swt,
 org.eclipse.swt.events,
 org.eclipse.swt.graphics,
 org.eclipse.swt.layout,
 org.eclipse.swt.widgets,
 org.eclipse.ui.plugin,
 org.osgi.framework
Export-Package: com.auth.lotusplugin.popdlg;
   uses:="com.ibm.rcp.jface.action,
   com.ibm.lotuslabs.context.service.document,
   com.ibm.lotuslabs.ui,
   com.ibm.rcp.jface.action,
   com.ibm.rcp.swt.swidgets,
   com.satuit.core,
   com.SatuitCRM.WebServices,
   javax.swing,
   lotus.domino,
   lotus.notes,
   org.eclipse.jface.action,
   org.eclipse.jface.window,
   org.eclipse.swt,
   org.eclipse.swt.events,
   org.eclipse.swt.graphics,
   org.eclipse.swt.layout,
   org.eclipse.swt.widgets,
   org.eclipse.ui.plugin,
   org.osgi.framework"
Bundle-ClassPath: .,
 com.satuit.core.jar,
 com.ibm.lotuslabs.ui.jar,
 com.ibm.lotuslabs.context.service.jar,
 com.SatuitCRM.WebService.jar,
 lib/activation-1.1.1.jar,
 lib/commons-lang3-3.1.jar,
 lib/mail.jar,
 lib/SatuitCRM_XML_API2.jar

build.properties

source.. = src/
output.. = bin/
bin.includes = META-INF/,\
               plugin.xml,\
               lib/commons-lang3-3.1.jar,\
               lib/activation-1.1.1.jar,\
               lib/mail.jar,\
               lib/SatuitCRM_XML_API2.jar,\
               .
additional.bundles = com.ibm.rcp.browser.ie,\
                     com.ibm.rcp.jfaceex
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T03:25:37+00:00Added an answer on June 7, 2026 at 3:25 am

    Don’t have a clear cut answer, but maybe these help:

    I think that you just need to set up your target platform right. Make sure that your target platform contains all the bundles that you need that isn’t in your workspace. When specifying a dependency, you can use Require-Bundle (or better still Import-Package), regardless if the bundle is in your workspace or in your target platform.

    For the rest:

    • Exporting system packages from your bundle (like javax.swing) is usually a bad idea, as it can mess up the resolution later. You really should only export stuff from a bundle that is in that bundle

    • I am not too familiar to the ‘additional.bundles’ construction, it’s not standard OSGi, and I don’t think you’ll need it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm aware of this question, and it's follow-up, and also this one, but I
This question is in follow up to this post Grails one to many relationship
This question is a follow on from this one ... I am binding to
This is a follow-up question to this one . Consider this example: #include <iostream>
Just a follow up question to this one here => link Is it possible
This is like a follow-up question to this one . Basically what I'm doing
I have a follow-up question to this one . I created a new form,
I have a follow up question to this one . Now that I have
This is a follow-on question from the one I asked here . Can constraints
This is really a follow on question to a previous one , where I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.