bigGuy
bigGuy

Reputation: 1744

javax.crypto in Java 8u20

After JDK update (8u11 -> 8u20) my code stopped compiling. These classes become unavailable:

import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;

Was javax.crypto package was removed from latest Oracle JDK? I cannot find any information about it.

Can I solve this problem by adding some library?

Upvotes: 4

Views: 342

Answers (1)

nkukhar
nkukhar

Reputation: 2025

These libraries are in the Oracle JDK 8u20 for sure. Here's my advice for you:

  • Make sure you download Oracle JDK form Oracle site.
  • Create some really small project with using missed classes without any other libraries and try to compile it with newly downloaded JDK (try to use simple console commands to compile and run it, that's how you will be sure your IDE does not mess up with libraries).
  • If previous step succeed try to link just tested JDK to your project, pay close attention to IDE settings and make sure you link it properly.

Good luck!

Upvotes: 2

Related Questions