Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » NoSuchAlgorithmException when running from GUI
NoSuchAlgorithmException when running from GUI [message #26136] Fri, 16 May 2003 10:21 Go to next message
Eclipse UserFriend
Originally posted by: cfhREMOVE_THIS.gmx.net

I just installed JDK1.4.2 and now I get the following exception:

java.security.NoSuchAlgorithmException: Algorithm DES not available

when starting in the GUI (with or without debug). The DES algorithm
is listed as available and it works fine when starting from the
command line or when using JDK1.4.1 in eclipse.

Any ideas what went wrong?

Using Eclipse Version: 2.1.0 Build: 200303272130

CODE:
public static void main(String[] args) {
Set algs = Security.getAlgorithms(\"SecretKeyFactory\");
Iterator it = algs.iterator();
while (it.hasNext()) {
System.out.println(it.next());
}
try {
SecretKeyFactory.getInstance(\"DES\");
System.out.println(\"OK\");
} catch (NoSuchAlgorithmException e) {
System.err.println(e);
}
}
Re: NoSuchAlgorithmException when running from GUI [message #29124 is a reply to message #26136] Mon, 19 May 2003 08:07 Go to previous message
Eclipse UserFriend
Originally posted by: greifeneder.racon-linz.at

C Heuberger wrote:
> I just installed JDK1.4.2 and now I get the following exception:
> java.security.NoSuchAlgorithmException: Algorithm DES not available

I fixed my problem with 2 different JRE configurations:
Windows->Preferences->Java->Installed JRE

A configuration for compile and another for runtime.
The compile configuration contains the default system libraries with all
jar files in jre/lib and jre/lib/ext.
The runtime configuration is without the jre/lib/ext jars and therefore
with 5 libraries.

It seems that the sunjce_provider.jar doesn't have to be in the classpath.

Mike
Previous Topic:Can I drag my selection text in the editor?
Next Topic:build behavior of properties files
Goto Forum:
  


Current Time: Tue Jul 22 13:59:21 EDT 2025

Powered by FUDForum. Page generated in 0.03322 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top