Quantcast
Channel: Active questions tagged charset - Stack Overflow
Viewing all articles
Browse latest Browse all 59

Springboot not loading my charset SPI library

$
0
0

I have a charset library, MyCharsetProvider.jar, containing SP code as a subclass of java.nio.charset.spi.CharsetProvider as per specs (https://docs.oracle.com/javase/8/docs/api/java/nio/charset/spi/CharsetProvider.html)..and in src\main\resources\META-INF\services\java.nio.charset.spi.CharsetProvider containing com.myorg.MyCharsetProvider. This SPI will respond for MyCharset with another charset name..

In my sprintboot app, pom.xml my charset provider is referred. I am calling charset.forName("MyCharset"), within eclipse when I ran (i.e not jar), JVM is able to call MyCharsetProvider.. however when i build a jar via maven and run the jar, JVM does not recognize the presence of MyCharsetProvider.

any ideas what is happening?


Viewing all articles
Browse latest Browse all 59

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>