McNinja
McNinja

Reputation: 790

Running Gradle Causes - Error: Could not find or load main class security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider

So I was messing around setting up bouncy castle with my JRE, editing the file 'java.security'. Now when I run the gradle command, I receive:

C:\temp>gradle
Error: Could not find or load main class security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider

I've completely uninstalled/deleted my JDK,JRE,Gradle user home, & Gradle installations / directories. I've installed newer versions of the JDK & JRE, same version of Gradle, but in a different directory. But I still get:

C:\temp>gradle
Error: Could not find or load main class security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider

Why???

Upvotes: 2

Views: 519

Answers (1)

McNinja
McNinja

Reputation: 790

OK, got it. I had done:

JAVA_OPTS=security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider

Removed that, and all good now.

Upvotes: 1

Related Questions