Hi,
I’m trying to call Aspose Cloud from my Java application which already uses the jakarta.mail library using code like:
byte[] requestDocument = Files.readAllBytes(Paths.get(TestInitializer.LocalTestFolder, localFile).toAbsolutePath());
UpdateFieldsOnlineRequest request = new UpdateFieldsOnlineRequest(
requestDocument, null, null, null, null);
UpdateFieldsOnlineResponse result = TestInitializer.wordsApi.updateFieldsOnline(request);
However, because aspose-words-cloud:23.5.0 uses the older javax.mail library and both libraries are on the class path I get the following error:
java.lang.NoSuchMethodError: com.sun.mail.util.MimeUtil.cleanContentType(
Ljavax/mail/internet/MimePart;Ljava/lang/String;)Ljava/lang/String;
Is there a way I can use Aspose Cloud with my application that uses jakarta.mail?
Thank you
Philip