Package sun.security.ec does not exist

I am trying to use the sun.security.ec module in Java on Win7. When trying to compile it gives this error:

package sun.security.ec does not exist

Where is sun.security.* Located in terms of a .jar file? Where can I download the .jar file?

+4
source share
1 answer

This is part of the JDK (at least in JDK6), should be in classes.jar (where java.lang.String has almost everything else).

However, you should not directly access these implementation-specific classes. You must use this provider using standard interfaces such as java.security.spec.ECParameterSpec .

+5
source

Source: https://habr.com/ru/post/1343867/


All Articles