Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Build problem with plugins. (help needed)
Build problem with plugins. (help needed) [message #330309] Thu, 24 July 2008 19:58 Go to next message
Eclipse UserFriend
Hello All,
I have problem with the following scenario. I need your help in resolving
this problem.

I have two plugins A and B as described below

Plug-in A
src (a folder containing some classes)
thirdParty.jar
Manifest (manifest folder)

Plug-in B (depends on A)
src (a folder containing some classes using classes from A.src and
A.thirtdParty.jar)
Manifest (manifest folder)

Plugin A exports classes from it's src folder from the third party library
it included in it.

Now, if Plug-in A and Plug-in B are built in the work space, both of them
build fine.

However, if I do the following,
1) build Plugin-A separately
2) copy A.jar (plug in jar file created by export) into plugins folder
in my eclipse installation
3) create a work space with Plug-in B in it using eclipse.

The problem now is that Plug-B is compilation errors for classes from B
saying that it could not resolve the classes from A.
Am I doing something wrong here? What is wrong with my scenario above?

thanks a lot in advance,
Sri
Re: Build problem with plugins. (help needed) [message #330330 is a reply to message #330309] Fri, 25 July 2008 10:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Sri_know wrote:
> Hello All,
> I have problem with the following scenario. I need your help in resolving
> this problem.
>
> I have two plugins A and B as described below
>
> Plug-in A
> src (a folder containing some classes)
> thirdParty.jar
> Manifest (manifest folder)
>
> Plug-in B (depends on A)
> src (a folder containing some classes using classes from A.src and
> A.thirtdParty.jar)
> Manifest (manifest folder)
>
> Plugin A exports classes from it's src folder from the third party library
> it included in it.
>
> Now, if Plug-in A and Plug-in B are built in the work space, both of them
> build fine.
>
> However, if I do the following,
> 1) build Plugin-A separately
> 2) copy A.jar (plug in jar file created by export) into plugins folder
> in my eclipse installation
> 3) create a work space with Plug-in B in it using eclipse.
>
> The problem now is that Plug-B is compilation errors for classes from B
> saying that it could not resolve the classes from A.
> Am I doing something wrong here? What is wrong with my scenario above?

Just having a plugin installed (as you've done in step 2 above) does NOT
automatically make it available to projects in the workspace. You'll
need to add A.jar to Project B's build path. The easiest way to do that
is to use the Add Variable... button on the build path edit tab, and
then select the ECLIPSE_HOME variable, Extend..., and select A.jar

Hope this helps,
Eric
Re: Build problem with plugins. (help needed) [message #330349 is a reply to message #330309] Fri, 25 July 2008 17:08 Go to previous message
Eclipse UserFriend
I think the problem here is that A.jar has a nested jar - thirdParty.jar.
Eclipse doesn't know how to handle nested JARs. Try to export plug-in A as
a folder.
Previous Topic:Lazy Virtual Tables and Views
Next Topic:Common Navigator Drop Problem
Goto Forum:
  


Current Time: Thu Mar 13 13:18:51 EDT 2025

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

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

Back to the top