cancel
Showing results for 
Search instead for 
Did you mean: 

[ImageIO] add plugin jar to classpath

Former Member
0 Kudos

Hello Experts,

I have built a WebDynpro application in which I need to resize images (JPG, PNG and GIF). I use standard library :

boolean writeResult = ImageIO.write(bufferedImg, fileExtension, streamOut);

This works fine, except for the GIF format for which there is no standard writer.

I decided to use <a href="https://gif-plugin.dev.java.net/">gif-plugin</a> which should do the trick.

According to the plugin documentation : "<i>Just copy the plugin jar to somewhere in the classpath.

The jdk should automatically detect the plugin</i>".

I added the jar in an external library, exactly the same I do for other external jars I use.

I can see the jar in the classpath when opening 'Project > properties > Java Build Path > Libraries"

But seems that it is not been added to the classpath at runtime because plugin is not detected.

Do you have any hint on that ?

Thanks a lot.

Regards,

Nicolas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

In your external library DC you should create public part with type assembly - and add neccessary libs to in. Build it.

IN Webdynpro DC you should add reference on created pp with type 'build'. Build WD DC - now Wd ear file should contain required custom jar and will be able to use it on runtime.

Answers (0)