I use the following code to test the BouncyCastle crypto library:
import java.security.Security;
public class SimpleTest {
public static void main(String[] args)
{
String providerName="BC";
if (Security.getProvider(providerName)==null)
{
System.out.println(providerName + "provider not installed");
}
else
{
System.out.println(providerName + "is installed");
}
}
}
However, Eclipse shows “BCprovider not installed”, and my EditPlus shows “BC is installed”.
What makes this difference?
There is a library missing somewhere in your eclipse that it can not find it. You need to revise your configuration in eclipse.