Problem following the Micronaut quick start

Here is something that took me far too long to figure out and will hopefully help anyone that finds themselves in a similar situation. It probably causes similar problems way beyond Micronaut, but I mention it here because that is where I encountered it.

I am running Windows 10 Profressional and using a Java 8 JDK. I had similar problems whether using OpenJDK or the Oracle reference distribution.

Once I installed Micronaut I would run “mn” to get to the CLI as suggested in the Quick Start and would inevitably be met with:

| Error Error occurred running Micronaut CLI: the trustAnchors parameter must be non-empty (Use –stacktrace to see the full trace)

I looked at the batch script and turned on its DEBUG (set DEBUG=on – I still have not figured out how to use –stacktrace as suggested in the message) which made it abundantly clear that it was blowing off trying to run the Java class io.moicronaut.cli.MicronautCli but really told me nothing more. It seemed clear it was having a problem downloading dependencies since that message seems to always come down to a SSLException in anything I googled and I could not imagine what else is might be trying to do.

Eventually I found something noting that OpenJDK had a bug that persists in the latest release of its Java 8 JDK (jdk8u172-b11) and also exists in the Oracle distribution apparently where the cacerts file (under jre/lib/security) does not allow much. I copied the file over from the latest OpenJDK Java distribution (101KB versus 1KB) and suddenly my dependencies downloaded and I was in!