I wrote a java library using aspose to convert .eml to .msg file:
It works well.
MailMessage msg = MailMessage.load(target.getAbsolutePath(), MessageFormat.getEml());
msg.save(emlFile + “.msg”, MailMessageSaveType.getOutlookMessageFormat());
Then I wrote C++ to invoke JNI, and it works for anything but the load.
I could use the C++ code to invoke the java code to do anything, but it just won’t load the file correctly.
jint result = env->CallStaticIntMethod(msgconverter_clazz,
This calls the java function, it stopped at the load function.
Can anyone help?
Thank you very much!