Skip to main content

How to detect if native library is used?

1 reply [Last post]
scriptoid
Offline
Joined: 2010-04-07

This might be an easy stuff but how can someone detect if native library are being used?

I know you can use -Dcom.sun.media.imageio.disableCodecLib=true to disable the native library but can you detect from the code that you are actually using the native stuff and not the "pure" methods?

Message was edited by: scriptoid

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jxc
Offline
Joined: 2005-02-24

You may get the name of the reader or writer that you are using,
e.g., reader.getClass().getName(), and check if "CLib" is in it.
If yes, then the native library is being used.

HTH,
-James