Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nameserver startup script is not compatible with MacOS #6026

Closed
aaron-ai opened this issue Feb 10, 2023 · 2 comments · Fixed by #6167
Closed

nameserver startup script is not compatible with MacOS #6026

aaron-ai opened this issue Feb 10, 2023 · 2 comments · Fixed by #6167

Comments

@aaron-ai
Copy link
Member

image

@francisoliverlee
Copy link
Member

francisoliverlee commented Feb 13, 2023

你的这种报错namesrv代码是什么版本, java是什么版本呢?以下是我用最新的dev分支尝试的问题。

我使用的namesrv版本:当前dev分支
java:

java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)

当前的dev分支我尝试了下, 报错如下:

image

原因是JAVA_HOME路径中有空格,导致执行java -jar的时候java二进制找不到

image

处理办法:在安装java的时候, 不要全部路径中不要包含空格,特别是mac和windows。

比如使用这种路径是ok的:
image

Oliverwqcwrw added a commit to Oliverwqcwrw/rocketmq that referenced this issue Feb 23, 2023
@Oliverwqcwrw
Copy link
Member

Oliverwqcwrw commented Feb 23, 2023

你的这种报错namesrv代码是什么版本, java是什么版本呢?以下是我用最新的dev分支尝试的问题。

我使用的namesrv版本:当前dev分支 java:

java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)

当前的dev分支我尝试了下, 报错如下:

image

原因是JAVA_HOME路径中有空格,导致执行java -jar的时候java二进制找不到

image

处理办法:在安装java的时候, 不要全部路径中不要包含空格,特别是mac和windows。

比如使用这种路径是ok的: image

I have the same problem,

I have noticed that the find_java_home function is currently fetching the system directory's java. When I customize the JAVA_HOME environment variable, I am still fetching the system java directory. I think the user-defined directory should have a higher priority

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants