You are correct that the cloud secure Agent is not able to understand the library.
Please try once by setting it at the JVM classpath level by appending the external jar path accordingly.
Below is the document for the same.
Let us know if this helps.
You can open a support case since this might require little more investigation from the Secure agent machine.
However please have a look on the below property as well:
Design Time Classpath :Classpath that the Secure Agent uses for custom or third-party packages when you design and validate the transformation and when you run the mapping from the Mapping Designer.
This classpath is not used when you run the mapping through a mapping task.
Set the design-time classpath when you want to test the transformation and neither the JVMClassPath property for the Secure Agent nor the CLASSPATH environment variable on the Secure Agent machine contain the required packages. If you configured the JVMClassPath property or the CLASSPATH environment variable to include the required packages, then you do not need to configure this property.
For more information please have a look on the below :
Thank you, again.
Yes, I am aware of the design-time classpath.
When I don't set it I get the compile error: Import Packages, Line 1: "package javax.mail does not exist"
And when I do set it to the path that contains the jar file ("D:\Program Files\Informatica Cloud Secure Agent\ext\ctjars") I get: the before mentioned exception:
Exception occurred during compilation: An error occurred while compiling on the Secure Agent: An unexpected error occurred: invalid target release: Cloud
A support ticket seems to be unavoidable at this point.
Copy the jar file in the following folder paths inside the secure agent under the JDK
Restart the agent, Compile the code once DIS is up & running
Thank you for your help.
I tried to follow your instructions and added javax.mail.jar to
D:\Program Files\Informatica Cloud Secure Agent\apps\jdk\1.8.0_Zulu22.214.171.124_275_SA\lib and
D:\Program Files\Informatica Cloud Secure Agent\apps\jdk\1.8.0_Zulu126.96.36.199_275_SA\jre\lib
Unfortunately, the problem stays the same.
Depending on what I add to the design classpath (nothing, jar folder) I get either "package javax.mail does not exist"
- or Exception occurred during compilation: An error occurred while compiling on the Secure Agent: An unexpected error occurred: invalid target release: Cloud (with the fully qualified path to the jar file, e.g. D:\Program Files\Informatica Cloud Secure Agent\apps\jdk\1.8.0_Zulu188.8.131.52_275_SA\jre\lib\javax.mail.jar).
You can open a support ticket to have a check on the same in detail ,since this might need screen share as well.