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!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
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