Actually I am getting an error:
Exception in thread "main" java.lang.NoClassDefFoundError:sun/io/CharToByteConverter
This is because in Java 8, the CharToByteConverter class has been removed as it was deprecated.
Now I want to know of any alternative which would replace this package/class and provide its functionality without throwing the exception mentioned above.
This class is used in the SQLJ's
Translator.jar
and inside it it is in
sqlj.util.io.OracleOutputStream.class
Edit: If I replace the CharToByteConverter class with the java.nio.charset class, still the SQLJ might not be able to detect it. Please correct me if I am wrong. And let me know if replacing the CharToByteConverter with java.nio.charset might fix the issue?