When I try to run ./gradlew genSources for a minecraft mod I wanna make is just pops out the error thingamapop

huangapple go评论84阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年4月4日 04:37:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/75923585.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定