Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Product export wizard problem
Product export wizard problem [message #448346] Fri, 21 April 2006 08:49 Go to next message
Eclipse UserFriend
first I like to say sorry for posting the nth question regarding the product export wizard, but I am really desperate!
I've read nearly any post regarding compile problems ("The import x.y.z cannot be resolved") when exporting the product and I've checked Manifest.mf and build.properties many times. I even created three dummy plugins that do nothing but depend on each other the same way that my product does. The situation:
I have an RCP application plugin A and two plugins B and C. B contains sources and 3rd party libraries, which it exposes to A and C. A and C depend on B. C also depends on A (some base classes are defined in A).
I am able to export all plugins one by one, but if I try to export the whole product (based on plugins) I'll get compilation problems.
All classes of A that depend on classes of B cannot be compiled because the imports cannot be resolved. It's the same with plugin C. There all imports from A and B cannot be resolved. In short: No import from another plugin can be resolved.
All stated packages are exported by the their plugins manifest and are imported in the dependend plugins manifest. The dummy plugins do not show this behaviour, therefore I have no clue what's going wrong.
Is it possible to debug the exports compile process to see the classpath settings at compile time?
Can it be a problem of compile order?
To avoid the export wizard, I need an Ant file that will do the same. Where can I find such a file?

Thanks for 'listening' to me. I would be very glad, if you have useful hints or solutions for me.

Torsten
Re: Product export wizard problem [message #448369 is a reply to message #448346] Mon, 24 April 2006 04:04 Go to previous messageGo to next message
Eclipse UserFriend
I just read the following post:

http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/m sg12268.html

There Alan Green stated, that after generating an Ant build file and selecting 'custom build' his export process worked.
I tried the same and got the same result. There are no longer "The import x.y.z cannot be resolved" messages and the exported product runs without errors.
Can anybody tell me the reason for this behaviour?

Torsten
Re: Product export wizard problem [message #448372 is a reply to message #448346] Mon, 24 April 2006 06:57 Go to previous messageGo to next message
Eclipse UserFriend
Hello Torsten Beuck,

since you have a very basic problem, I would start with some questions:

1) In which way did you define your dependencies? Just via the
Java Build path or via the manifest dependencies? (Only the last one
are taken into account by the export process)
2) You should definitively ensure that any plug-in that provides types
for other plug-ins do have properly defined "Runtime" pages, where the
"Exported Packages" list contains all published packages
3) You should also ensure, that the plug-in containing 3rd-party
libraries does export them via:
- Runtime page "Classpath" and Build page "Binary Build"

Are all of these constraints fulfilled?

HTH,

Daniel Krügler
Re: Product export wizard problem [message #448373 is a reply to message #448372] Mon, 24 April 2006 07:17 Go to previous message
Eclipse UserFriend
Hello Daniel,

> since you have a very basic problem, I would start
> with some questions:
> ...
> Are all of these constraints fulfilled?

Yes, they definitely are fullfilled. I have defined the dependencies only via the manifest and used update classpath to set the project classpath.
The exported packages lists of my plugins contain all packages that should be visible to other plugins.
Furthermore the 3rd party libraries (spring framework) are exported via runtime page and I have added the '.' to the runtime tab classpath.
The jars produced by the export wizard are containing everything that's necessary. Nonetheless I got compile errors until I followed Alan Greens hint. Now everything works fine.

Torsten
Previous Topic:Control Keys not working in a multipage editor
Next Topic:Overriding language selection
Goto Forum:
  


Current Time: Sat Jul 05 04:48:00 EDT 2025

Powered by FUDForum. Page generated in 0.03586 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top