trigger
trigger

Reputation: 141

package sun.security.ec does not exist

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

package sun.security.ec does not exist

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

Upvotes: 5

Views: 5761

Answers (1)

Thilo
Thilo

Reputation: 262852

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

However, you should not be accessing these implementation-specific classes directly. You should be able to use this provider using the standard interfaces, such as java.security.spec.ECParameterSpec.

Upvotes: 6

Related Questions