英文:
When I try to run ./gradlew genSources for a minecraft mod I wanna make is just pops out the error thingamapop
问题
当我运行 ./gradlew genSources
来创建一个 Minecraft 模组时,出现以下错误:
错误: 找不到或加载主类 org.gradle.wrapper.GradleWrapperMain
以及:
导致: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
有人能告诉我如何修复它吗?我在 Windows 11 PC 上使用 Visual Studio Code。请帮助我。
我尝试运行 ./gradlew genSources
,但它总是出现错误。
英文:
When I run ./gradlew genSources
for a Minecraft mod I wanna make it pops out this:
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
and this:
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
Could someone tell me and help me as to how to fix it. I am using Visual Studio Code on a Windows 11 PC. Please help me.
I tried to run ./gradlew genSources
and it would just pop out an error.
答案1
得分: 0
我找到答案。我找到了答案,原因是我将我的电脑设置为希腊语,该模组所在的桌面文件夹名为Υπολογιστής,而gradle/gradlew将其识别为随机字符,我只需要将文件夹的目录从桌面更改为文档即可。感谢所有提供答案的人。
英文:
Answer found. I Found the answer and it was because I had my pc on Greece the Desktop that the folder of the mod was in is called Υπολογιστής and gradle/gradlew recognize that as some random caracters and all i had to do was change the folders directory form Desktop to Documents. Thank everyone that send an answer.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论