Refer Third Part jar in a bundle | Community
Skip to main content
nitin_singi11
October 16, 2015
Solved

Refer Third Part jar in a bundle

  • October 16, 2015
  • 1 reply
  • 494 views

Hi,

 

Guys could you please tell me how can i refer a jar in a OSGI bundle.

 

What i have done is i have installed my code as a bundle and other Jar file has a separate bundle.

But my code is not able to refer to that jar file.

Please help.

 

Thanks and Regards,

Nitin

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

Hi 

See this community article. It talks about developing a CQ Sling Servlet that uses a JSON lib. The JSON lib is in its own JAR file and is placed within a OSGi fragment and deployed to CQ. Now the bundle that uses the JSON lib can be deployed too. 

See: 

http://scottsdigitalcommunity.blogspot.ca/2013/06/posting-form-data-to-adobe-cq-using.html

HTH,

Scott

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

Hi 

See this community article. It talks about developing a CQ Sling Servlet that uses a JSON lib. The JSON lib is in its own JAR file and is placed within a OSGi fragment and deployed to CQ. Now the bundle that uses the JSON lib can be deployed too. 

See: 

http://scottsdigitalcommunity.blogspot.ca/2013/06/posting-form-data-to-adobe-cq-using.html

HTH,

Scott