Error while importing packages. | Community
Skip to main content
Level 3
October 16, 2015
Solved

Error while importing packages.

  • October 16, 2015
  • 2 replies
  • 1181 views

Hello,

       My requirement is to convert pdf, to images while am converting pdf to image am getting error  while importing  packages, which i have uploaded file.could you please let me know the solution.

 

Thanks.

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 joerghoh

all "com.sun.*" packages are described to be provided by OSGI boot delegation, so these packages must reside in the class path of the JVM and cannot be provided by OSGI bundles. If you want to provide "com.sun.pdfview" via an OSGI bundle, you should modify your sling.properties file. But I would avoid that and rather drop the corresponding JAR file in the classpath directly.

Jörg

2 replies

Level 6
October 16, 2015

Did you convert 3rd party jars to OSGI bundle?

Here is the links on how to convert 3rd party jars to integrate in CQ

http://www.wemblog.com/2012/04/how-to-integrate-3rd-party-jar-file-in.html

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

all "com.sun.*" packages are described to be provided by OSGI boot delegation, so these packages must reside in the class path of the JVM and cannot be provided by OSGI bundles. If you want to provide "com.sun.pdfview" via an OSGI bundle, you should modify your sling.properties file. But I would avoid that and rather drop the corresponding JAR file in the classpath directly.

Jörg