5

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?

Kirk Woll
  • 76,112
  • 22
  • 180
  • 195
trigger
  • 141
  • 1
  • 2
  • 3

1 Answers1

6

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.

Thilo
  • 257,207
  • 101
  • 511
  • 656