Skip to Content
avatar image
Former Member

[ImageIO] add plugin jar to classpath

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 gif-plugin">gif-plugin> 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.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jun 08, 2007 at 01:06 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded