0

The Javadoc for this method includes:

Throws: SecurityException - if an attempt is made to add this class to a package that contains classes that were signed by a different set of certificates than this class, or if the class name begins with "java.".

I am getting this exception in my code (the exception does not have anything telling why), and this documentation makes me confused.

EDIT: None of the jars I use are signed.

Can anyone explain this to me, with an example if possible?

Curious
  • 2,783
  • 3
  • 29
  • 45

1 Answers1

0

It says that classes from the same package are loaded by different class loaders that are signed by different certificates( or might be an invalid certificate). If you could paste your code snippet for more details it would help. You can find a similar discussion here Java SecurityException: signer information does not match have a look.

Community
  • 1
  • 1