gpt4 book ai didi

windows - Cassandra - "The system cannot find the file specified"

转载 作者:可可西里 更新时间:2023-11-01 13:36:59 24 4
gpt4 key购买 nike

我已经在 Windows 10 上安装了 Cassandra,现在当我尝试使用“cassandra”运行它时,出现以下错误:

enter image description here

有什么想法吗?

最佳答案

查看文件后,powershell 脚本 cassandra-env.ps1 执行以下函数:

if (Test-Path Env:\JAVA_HOME)
{
$env:JAVA_BIN = "$env:JAVA_HOME\bin\java.exe"
}
elseif (Get-Command "java.exe")
{
$env:JAVA_BIN = "java.exe"
}
else
{
echo "ERROR! No JAVA_HOME set and could not find java.exe in the path."
exit
}

我不是 Cassandra 方面的专家,但如果我是你,我会运行这个脚本并确保 $env:JAVA_BIN 设置正确,然后我会追踪它的踪迹并查看conf\cassandra-env.ps1 文件中的 ParseJVMInfo 函数在您的设置中抛出错误。

更新:检查 JAVA_HOME 环境变量并查看其设置是否使得 [JAVA_HOME]\bin\java.exe 存在

关于windows - Cassandra - "The system cannot find the file specified",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51823969/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com