soultions found was :
First Approach :
1) use the TwelveMonkeys library https://github.com/haraldk/TwelveMonkeys/
2) before making Image to be read or write as imageIo.read or imageIo.write scan for plugin using ImageIO.scanForPlugins() and add the twelvemonkeys lib. as maven depedency.
maven install :
osgi:install -s wrap:mvn:com.twelvemonkeys.imageio/imageio-jpeg/3.0
osgi:install -s wrap:mvn:com.twelvemonkeys.imageio/imageio-core/3.0
osgi:install -s wrap:mvn:com.twelvemonkeys.imageio/imageio-metadata/3.0
osgi:install -s wrap:mvn:com.twelvemonkeys.imageio/imageio-batik/3.0
osgi:install -s wrap:mvn:com.twelvemonkeys.imageio/imageio-jmagick/3.0
osgi:install -s wrap:mvn:batik/batik-1.5-fop/0.20-5
<Import-Package>
batik;resolution:=optional,
magick;resolution:=optional,
bsh;resolution:=optional,
com.twelvemonkeys.*,
*
</Import-Package>
<Export-Package>
com.twelvemonkeys.*,
com.google.gson.*,
com.brodos.common.*,
</Export-Package>
<DynamicImport-Package>*</DynamicImport-Package>
<Embed-Dependency>imageio-jpeg,imageio-core,imageio-metadata,imageio.batik,imageio.jmagick;scope=compile|runtime</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>
Second Approach : Endorsed Mechanism
1) Add the TwelveMonkeys into servicemix /lib/endorsed directory and the execute the application.
source
share