Please set the JAVA_HOME variable in your environment, We need java(x64)! win10

Today, because I can’t enter the rocketmq official website, I can’t download mq, so I copied a rocketmq from my colleague, but found that when I started mqnamesrv, I reported an error Please set the JAVA_HOME variable in your environment, We need java(x64)!, and the local javahome is correct. configuration, so open the mqnamesrv.cmd file and find

 Just change the java path in the above figure to the path of your own locally configured JAVA_HOME, and the same is true for the broker. Open srv and broker again to run normally!

Summary: It may be copied from a colleague, and some configurations are written to death, so it is best to download and install from the official website, otherwise you may encounter these pitfalls!

Remember!

over!

Guess you like

Origin blog.csdn.net/weixin_42767099/article/details/119320631