英文:
Not enough space for BuildTools to run - Java - Minecraft plugin test server
问题
抱歉,如果问题标题有点简洁,我想不出其他的表达方式,如果这个问题不清楚,我很抱歉。但是那些之前编写过Java Minecraft插件或在本地主机上创建过测试服务器的人可能知道我在说什么。我试图用以下命令来运行BuildTools(并安装git):
java -jar BuildTools.jar --rev 1.15
但是我得到了这个错误:
BuildTools需要至少512M的内存来运行(推荐使用1024M),但只检测到247M。
如果您运行的是32位系统,或者内存较低,很容易出现这种情况。
请使用手动指定内存重新运行BuildTools,例如:java -Xmx1024M -jar BuildTools.jar --rev 1.15
是的,我尝试过 java -Xmx1024M -jar BuildTools.jar --rev
并且它给了我:
正在加载BuildTools版本:git-BuildTools-7fe9375-122 (#122)
Java版本:Java 8
当前路径:C:\Users\mmein\OneDrive\Desktop\BuildTools\。
请不要在Dropbox、OneDrive或类似的位置运行BuildTools。您随后总是可以将完成的jar文件复制到那里。
我也尝试过在运行这个命令之后再运行第一个命令,但仍然出现相同的错误。我做错了什么?
英文:
Sorry if the question title was a bit brief, I couldn't think of any other way to word it, sorry if this is an unclear question. But those of you who have coded Java Minecraft plugins before or have created test servers on localhost probably know what I'm talking about. I'm trying to run BuildTools (And install git) with the command
java -jar BuildTools.jar --rev 1.15
but I get this error:
BuildTools requires at least 512M of memory to run (1024M recommended), but has only detected 247M.
This can often occur if you are running a 32-bit system, or one with low RAM.
Please re-run BuildTools with manually specified memory, e.g: java -Xmx1024M -jar BuildTools.jar --rev 1.15
And yes, I have tried java -Xmx1024M -jar BuildTools.jar --rev
and it gives me:
Loading BuildTools version: git-BuildTools-7fe9375-122 (#122)
Java Version: Java 8
Current Path: C:\Users\mmein\OneDrive\Desktop\BuildTools\.
Please do not run BuildTools in a Dropbox, OneDrive, or similar. You can always copy the completed jars there later.
Ive also tried running the first command after running this one and it still gives the same error. What am I doing wrong?
答案1
得分: 1
请不要在Dropbox、OneDrive或类似的位置运行BuildTools。您随后可以随时将完成的jar文件复制到那里。
当前路径:C:\Users\mmein\OneDrive\Desktop\BuildTools\。
它明确告诉您要做什么。您当前正在使用OneDrive桌面,尝试使用此路径:C:\Users\mmein\Desktop\,并在其中创建BuildTools文件夹,然后放入```BuildTools.jar```文件并运行命令。
英文:
Please do not run BuildTools in a Dropbox, OneDrive, or similar. You can always copy the completed jars there later.
Current Path: C:\Users\mmein\OneDrive\Desktop\BuildTools\.
It's telling you exactly what to do. You are currently using your OneDrive desktop, Try using this path: C:\Users\mmein\Desktop\ and create the BuildTools folder there with BuildTools.jar
and run the command.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论