I was well used while debugging in Eclipse source.
Operating environment
==> 64bit windows 7, jre 1.8.0_60(32bit) => If the 64-bit jre had a problem in jpeg2000 compressed or uncompressed.
I had to load the dll, as shown below.
System.load(MessageFormat.format("{0}\\lib\\clib_jiio.dll", currentPath));
System.load(MessageFormat.format("{0}\\lib\\clib_jiio_sse2.dll", currentPath));
System.load(MessageFormat.format("{0}\\lib\\clib_jiio_util.dll", currentPath));
jpeg2000 compressed and uncompressed files also work well.
But the deployment was a jar file, an error occurs, as shown below.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Exception in thread "main" sun.misc.ServiceConfigurationError:
javax.imageio.spi.ImageWriterSpi:
Provider com.sun.media.imageioimpl.plugins.jpeg.
CLibJPEGImageWriterSpi
could not be instantiated: java.lang.IllegalArgumentException: vendorName == null!
at sun.misc.Service.fail(Unknown Source)
at sun.misc.Service.access$200(Unknown Source)
at sun.misc.Service$LazyIterator.next(Unknown Source)
at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(Unknown Source)
at javax.imageio.spi.IIORegistry.<init>(Unknown Source)
at javax.imageio.spi.IIORegistry.getDefaultInstance(Unknown Source)
at javax.imageio.ImageIO.<clinit>(Unknown Source)
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Can you tell me what the problem?