Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Error while importing packages.

Avatar

Level 3

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.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

2 Replies

Avatar

Level 6

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

Avatar

Correct answer by
Employee Advisor

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