This issue may occur when the classes in the package mentioned in the library are not loaded in to jvm.
Can you check javax.mail jar codeset in pr_engineclasses table?
If the compilation error is only with javax.mail classes, and if you are using websphere server, it has default javamail classes which you can refer for compiling the library.
You can provide the compile path specifically for compiling the javamail classes using below steps:
1. Launch compiler from DesignerStudio->Systme->Settings->Compiler
2. Provide Default path, this will be the server path to the mail jar. Eg: 'C:/IBM/WebSphere/AppServer/plugins/com.ibm.ws.prereq.javamail.jar'
3. Click submit.
4. Restart the server and validate the issue by generating the library.
Hope it helps.
Posted: 3 years ago
Posted: 30 May 2019 11:44 EDT
Anand Pandey (AnandP)
Pega Platform Engineer