0

I have one project that could build with java 8, but build fails with java 7. Here's jenkins build fail message. I google it and found it seems a JDK bug. Is there any workaround for it ? Because I don't have permission to change the jenkins server environment.

java.lang.RuntimeException: Could not generate DH keypair: Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive) -> [Help 1]

Java: Why does SSL handshake give 'Could not generate DH keypair' exception?

Community
  • 1
  • 1
zjffdu
  • 22,452
  • 44
  • 99
  • 141
  • The SO you have linked itself has a workaround in the accepted answer. Didn't it work? – Codebender Jun 17 '15 at 04:55
  • That wordaround seems need to change the jenkins server, but I don't have permission to change anything on that machine. – zjffdu Jun 17 '15 at 05:01

1 Answers1

0

A workaround using BouncyCastle's JCE implementation.

Sumit Singh
  • 24,095
  • 8
  • 74
  • 100
  • That wordaround seems need to change the jenkins server, but I don't have permission to change anything on that machine. – zjffdu Jun 17 '15 at 05:06