hivemq / mqtt-cli

MQTT CLI is a useful command line interface for connecting various MQTT clients supporting MQTT 5.0 and 3.1.1
https://hivemq.github.io/mqtt-cli/
Apache License 2.0
310 stars 47 forks source link

Unable to run on Windows - JRE 1.8 required #303

Closed DaveDude closed 2 years ago

DaveDude commented 2 years ago

Hi

I'm installing HiveMQ and mqtt-cli on a new Windows 10 box. HiveMQ works fine. Unable to get mqtt-cli to run. I get the following error message:

This application requires a Java Runtime Environment 1.8

I have the following JDK installed per the HiveMQ installation procedure:

C:\Users\dwe>java --version openjdk 11.0.15 2022-04-19 OpenJDK Runtime Environment Temurin-11.0.15+10 (build 11.0.15+10) OpenJDK 64-Bit Server VM Temurin-11.0.15+10 (build 11.0.15+10, mixed mode)

JAVA_HOME is set like so:

C:\mqtt-cli-4.8.1-win>set java JAVA_HOME=C:\Program Files\Eclipse Adoptium\jdk-11.0.15.10-hotspot\

What's preventing mqtt-cli from working?

Thx

DaveDude commented 2 years ago

figured it out - JDK had been installed without the JDK Registry Keys option selected. Once I got that reinstalled with that open - things worked.