I'm using this: https://github.com/tidalwave-it/jrawio-src It's an Image I/O SPI Provider for Camera Raw files
I ran the maven project, took the necessary jars it has generated and put them as Referenced Libraries into my own project that converts images. When I run a conversion of a .NEF format to JPEG the bellow error happens.
Jan 22, 2020 1:54:16 PM it.tidalwave.imageio.util.Logger info
INFO: Installing RAWProcessor...
Jan 22, 2020 1:54:16 PM it.tidalwave.imageio.util.Logger info
INFO: Installed RAWProcessor
RAWProcessor succesfully installed
Exception in thread "AWT-EventQueue-1" java.lang.NoSuchMethodError: java.nio.ShortBuffer.position(I)Ljava/nio/ShortBuffer;
at it.tidalwave.imageio.nef.NEFCompressionData.<init>(NEFCompressionData.java:79)
and 79 is the line causing the error:
73 shortBuffer = byteBuffer.asShortBuffer();
79 shortBuffer.position(1);
Upon my research the referenced Buffer methods (such as shortBuffer.position(1);) used in the jrawio SPI have undergone changes from Java8 to Java9 and therefore it wouldn't be recognized - but I don't use Java9. I used Java8 for both editing and running the jrawio maven project and my own project.
I've been also trying to use and compile with older Javas but that breaks my own project. I've been changing the settings in generate-sources.xml and the pom.xml before running the jrawio project to generate the jars but no luck.
Running the jrawio project also gives:
warning [options] bootstrap class path not set in conjunction with -source 8
What can I do to fix all of this and successfully implement this Image I/O SPI Provider for Camera Raw files into my own project edited and compiled by Java8?