Skip to main content

Could not load mediaLib accelerator wrapper classes.

4 replies [Last post]
dani
Offline
Joined: 2003-06-12

Hi,

Can anyone explain me why I get a message: "Could not load mediaLib accelerator wrapper classes.Continuing in pure Java mode."

RenderedImage image = JAI.create("fileload","imagefile");
RenderedImage image2 = JAI.create("invert", image);

when executing line: "RenderedImage ij3 = JAI.create("invert", image); " I get a message: "Could not load mediaLib accelerator wrapper classes. Continuing in pure Java mode." JAI does not throw exception etc.. And when I write image to file its OK (inverted). I have mlibwrapper_jai.jar jai_core.jar jai_codec.jar jai_imageio.jar in my CLASSPATH.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cafeanimal
Offline
Joined: 2008-04-29

You don't mention what platform you're working on but just in case you're using a Mac, native acceleration isn't available for OSX.

Michael

power3d
Offline
Joined: 2006-07-17

And what about Linux?

James Cheng

You also need to put the .dll files somewhere in your PATH on Windows,
or put .so files somewhere in your LD_LIBRARY_PATH on Unix of Linux,
if you can not put them in the default directory for native libraries.
See http://java.sun.com/products/java-media/jai/INSTALL-1_1_3.html for
details.

Regards,
-James

jai-interest@javadesktop.org wrote:
> Hi,
>
> Can anyone explain me why I get a message: "Could not load mediaLib accelerator wrapper
> classes.Continuing in pure Java mode."
>
> RenderedImage image = JAI.create("fileload","imagefile"); RenderedImage image2 =
> JAI.create("invert", image);
>
> when executing line: "RenderedImage ij3 = JAI.create("invert", image); " I get a message:
> "Could not load mediaLib accelerator wrapper classes. Continuing in pure Java mode." JAI does
> not throw exception etc.. And when I write image to file its OK (inverted). I have
> mlibwrapper_jai.jar jai_core.jar jai_codec.jar jai_imageio.jar in my CLASSPATH. --- [Message sent
> by forum member 'dani' (jm)]
>
> http://www.javadesktop.org/forums/thread.jspa?messageID=113673&#113673
>
> --------------------------------------------------------------------- To unsubscribe, e-mail:
> interest-unsubscribe@jai.dev.java.net For additional commands, e-mail:
> interest-help@jai.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net
For additional commands, e-mail: interest-help@jai.dev.java.net

el_makhfi
Offline
Joined: 2006-11-14

Hi,
//to add decontaminate the message: Error: Could not load mediaLib accelerator wrapper classes. Continuing in pure Java mode
java.util.Properties p = new java.util.Properties(System.getProperties());
p.put("com.sun.media.jai.disableMediaLib", "false");
System.setProperties(p);
//to activates the accelerator adds in [b]C:\Program Files\Java\jdk1.6.0\bin[/b] 3 DLL of jai:
mlib_jai_util.dll , mlib_jai.dll and mlib_jai_mmx.dll
N. EL MAKHFI