gpt4 book ai didi

java - Runtime.getRuntime().exec() 调用的命令提示符返回并打印 "Not Enough memory resources are available to process this command"

转载 作者:行者123 更新时间:2023-12-02 03:32:20 30 4
gpt4 key购买 nike

我正在调用 API Runtime.getRuntime().exec(cmd.toString(), envp, new File(workingDirStr));

我不知道为什么命令提示符不断打印消息“没有足够的内存资源来处理此命令。”

cmd/c start """script.bat"

^ 这大致就是命令的开始方式。该批处理文件调用另一个脚本并启动一个 java 进程。有什么想法可以解决这个问题吗?

最佳答案

由于这是 Windows 问题

From: https://support.microsoft.com/en-us/help/4339170/not-enough-memory-resources-error-cmd-winpe-windows-10

This issue occurs because a resource file is not included in the components that are responsible for keeping these copyright strings. As a result, when the command prompt tries to read the string, it cannot find the string, and it assumes the reason that the string was not found is a low-memory condition.

关于java - Runtime.getRuntime().exec() 调用的命令提示符返回并打印 "Not Enough memory resources are available to process this command",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56877738/

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