Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 4th, 2008, 05:39 PM
BobWorsley BobWorsley is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 2 BobWorsley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 14 sec
Reputation Power: 0
Exception calling Cipher.getInstance("AES")

When I call Cipher.getInstance("AES") it is fine on my development PC but throws an exception on some PCs saying it can't find an AES provider. The Java 5 java.policy/security files in the lib\security folder are identical on both systems. I think the difference is that it works if the Java 5 SDK is installed, but not if it isn't, even though the JRE contains the AES provider (sunjce_provider.jar). If I add <JRE path>/lib/ext/sunjce_provider.jar to the classpath when launching my application, it finds the AES provider, but this causes another non-fatal but annoying (and scary to operators) JVM error box to pop up.

It's not good to require the Java 5 SDK to be installed on each client PC, so I'd like know how to get this to work correctly with just the Java 5 JRE.

I'm running Windows XP, as are most clients. Apparently this error does not occur on Linux.

Reply With Quote
  #2  
Old June 26th, 2008, 11:28 AM
BobWorsley BobWorsley is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 2 BobWorsley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 14 sec
Reputation Power: 0
Quote:
Originally Posted by BobWorsley
When I call Cipher.getInstance("AES") it is fine on my development PC but throws an exception on some PCs saying it can't find an AES provider. The Java 5 java.policy/security files in the lib\security folder are identical on both systems. I think the difference is that it works if the Java 5 SDK is installed, but not if it isn't, even though the JRE contains the AES provider (sunjce_provider.jar). If I add <JRE path>/lib/ext/sunjce_provider.jar to the classpath when launching my application, it finds the AES provider, but this causes another non-fatal but annoying (and scary to operators) JVM error box to pop up.

It's not good to require the Java 5 SDK to be installed on each client PC, so I'd like know how to get this to work correctly with just the Java 5 JRE.

I'm running Windows XP, as are most clients. Apparently this error does not occur on Linux.



This turned out to be a problem with an incorrect install of Java. This particular version of Java got installed using a non-standard process that did not get everything right. When I used the regular Java install it works fine!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Exception calling Cipher.getInstance("AES")


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT