hmm, it seems to be rather problem of jpackit.
it works within IDE and fails when run from jar, regardless java version.
Perhaps this little program will help you diagnose the problem.
/**
* Test JCE, find providers and algorithms supported.
*/
package com.mindprod.example;
import static java.lang.System.out;
import java.security.Provider;
import java.security.Security;
/**
* Test JCE, find providers and algorithms supported.
* <p/>
* composed with IntelliJ IDEA.
*
* @author Roedy Green, Canadian Mind Products.
* @version 1.0, 2006-03-15
*/
public final class TestJCE {
/**
* Prepare a list of providers and services.
* @param args not used
*/
public static void main( String[] args )
{
// heading
out.println( "Provider: type.algorithm -> className"
+ "\n aliases:"
+ "\n attributes:\n" );
// discover providers
Provider[] providers = Security.getProviders();
for ( Provider provider : providers )
{
// discover services of each provider
out.println( "<><><>" + provider + "<><><>\n" );
for ( Provider.Service service : provider.getServices() )
{
out.println( service );
}
out.println();
}
}
}