开发者

Ant mail task worked in Java 11, failed in Java 17 with "JSSE not in classpath" error?

开发者 https://www.devze.com 2022-12-07 20:31 出处:网络
I\'m using Apache Ant 1.10.12, and I have a problem with this mail task: <mail mailhost="${email.host}" mailport="${email.port}" ssl="${email.ssl}" user="${email.

I'm using Apache Ant 1.10.12, and I have a problem with this mail task:

<mail mailhost="${email.host}" mailport="${email.port}" ssl="${email.ssl}" user="${email.smtp.user}" password="${email.smtp.password}" 
          replyto="${email.from}" from="${email.from}" tolist="${email.to}&开发者_StackOverflow中文版quot; cclist="${email.cc}"
          subject="The ${build.version} build has completed">

This task works when I am using Java 11, but fails when I switch to Java 17. The error I get is this:

Failed to send email: could not instantiate ssl security provider, check that you have JSSE in your classpath

Java 11 debug output: https://controlc.com/7f283040

Java 17 debug output: https://controlc.com/6476775d

0

精彩评论

暂无评论...
验证码 换一张
取 消