I actually get the error message:
Exception in thread "main" java.lang.NoClassDefFoundError:sun/io/CharToByteConverter
This is because in Java 8, the CharToByteConverter class was removed as it is deprecated.
Now I want to know any alternative that would replace this package / class and provide its functionality without throwing the exception mentioned above.
This class is used in SQLJ.
Translator.jar
and inside it is
sqlj.util.io.OracleOutputStream.class
Edit: If I replaced the CharToByteConverter class with the java.nio.charset class, SQLJ may not be able to detect it. Please correct me if I am wrong. And let me know if replacing CharToByteConverter with java.nio.charset can solve the problem?
source share