Build problem with plugins. (help needed) [message #330309] |
Thu, 24 July 2008 19:58  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03309 seconds