Cipher.getInstance("AES/ECB/PKCS5Padding") not available


Can anyone tell me ASAP of why would this error occur? Also what J2SDK have begun to add support for this?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The implementation you are trying to access is simply not available.
mehtasAuthor Commented:
What do you mean by that? Can you please explain?

I have this thing working on my machine wherein I get the instance of Cipher. And I have j2sdk1.4.2_03 on my machine.

This application throws the exception below on other machine which has got a different version of java:

Algorithm (AES/ECB/PKCS5Padding) is not available - Algorithm AES not available

Does that provide any hint?
> I have this thing working on my machine wherein I get the instance of
> Cipher. And I have j2sdk1.4.2_03 on my machine.

Yes, AES is only available from 1.4 and onwards:
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

> Yes, AES is only available from 1.4 and onwards:

Which means jce 1.2
Sorry, wrong suggestion, AES is only available from jdk *1.4.2* and onwards.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Checks on file C:\j2sdk1.4.2\jre\lib\security\ has something like this


The number isn't 4 is fine, and checks for file C:\j2sdk1.4.2\jre\lib\ext\sunjce_provider.jar exists on path.

P.S. JAVA_HOME is C:\j2sdk1.4.2 by assume.
I can use both AES/ECB/PKCS5Padding and Rijndael/ECB/PKCS5Padding with j2sdk1.4.2-b28.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.