I have the following setup:
- eclipse
- a standard Java project (A)
- an eclipse plugin project (B)
How (if possible) can I use packages from A within B without first compiling a JAR file from A and adding it to B?
Thanks!
I have the following setup:
How (if possible) can I use packages from A within B without first compiling a JAR file from A and adding it to B?
Thanks!
if you declare:
you will get just what you need.
(a compilation -- of sources from A -- is still needed, but no jarA needs to be produced)
The java project A needs to be known from OSGi/Eclipse in order to be accessible at design time (ie while in eclipse, including launch and debugging) and then at runtime. The correct approach would be to make A an OSGI bundle, and reference this in B:
select A, right-click, project, pde tools, convert to plugins project ...
then in B, open the manifest.mf and add (com.example.pack being some packages defined in A that you want to use in B): Import-Package: com.example.pack