0
votes

I try to install SpotBugs but below error appeared.

Unable to read repository at https://spotbugs.github.io/eclipse/content.xml. java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

I use: openjdk version "10.0.1" 2018-04-17 OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1) OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)

And: Eclipse Version: Oxygen.3a Release (4.7.3a)

1

1 Answers

2
votes

firstly can you try >> sudo update-ca-certificates -f

If not resolved, follow the below steps;

$ sudo apt install openjdk-8-jre
$ sudo rm /etc/ssl/certs/java/cacerts
$ sudo update-ca-certificates — fresh

References:

Good luck!