We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

JNI DETECTED ERROR IN APPLICATION: illegal class name 'Ljava/lang/OutOfMemoryError;'

Hi Aspose Team,

I am converting .HTML file to .DOCX file, It is working fine in Android 5.0,6.0 and 7.0 OS versions but getting the below exception in Android 8.0 OS version.

JNI DETECTED ERROR IN APPLICATION: illegal class name ‘Ljava/lang/OutOfMemoryError;’

I am using aspose-words-19.2-java library.

following is the source code.

                License license = new License();
                InputStream isr = getResources().openRawResource(R.raw.license);
                license.setLicense(isr);

                String source_file_name = "/storage/emulated/0/GeneratedTemplate.html";
                String file_name = "/storage/emulated/0/GeneratedTemplate.docx";
                Document d = new Document(source_file_name);
                d.save(file_name, SaveFormat.DOCX);

Thanks,
Mahesh T.

@TMahesh,

Please try the latest version of Aspose.Words for Android via Java i.e. 19.4 and see how it goes on your end? In case the problem still remains, Please ZIP and upload your input HTML file (you are getting this problem with) here for testing. We will then investigate the issue on our end and provide you more information.