java - `JCE cannot authenticate the provider BC` when running a JAR -
in scala project use "org.bouncycastle" % "bcprov-jdk14" % "1.51"
cryptography.
if test project in scala ide works fine. once make jar , try run via java -jar ...
throws exception: exception in thread "main" java.lang.securityexception: jce cannot authenticate provider bc
i use https://github.com/sbt/sbt-assembly making jar , here's java -version
output:
java version "1.7.0_72" java(tm) se runtime environment (build 1.7.0_72-b14) java hotspot(tm) server vm (build 24.72-b04, mixed mode)
when making jar see output:
[info] merging files... [warn] merging 'meta-inf/bckey.dsa' strategy 'discard' [warn] merging 'meta-inf/bckey.sf' strategy 'discard' [warn] merging 'meta-inf/lambdawo.sf' strategy 'discard' [warn] merging 'meta-inf/manifest.mf' strategy 'discard' [warn] merging 'reference.conf' strategy 'concat' [warn] merging 'rootdoc.txt' strategy 'concat' [warn] strategy 'concat' applied 2 files [warn] strategy 'discard' applied 4 files
how can fix issue?
Comments
Post a Comment