zkm00323 发表于 2017-5-21 20:43
你下载了新版本的jdk有跟新JAVAHOME路径吗?
有啊,并且我也用指令调试过,是成功的
IMENDERDRAGON 发表于 2017-5-21 20:46
有啊,并且我也用指令调试过,是成功的
你有像我呢样改gradlew.bat,还是直接就能用了?
zkm00323 发表于 2017-5-21 20:50
你有像我呢样改gradlew.bat,还是直接就能用了?
直接就能用
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'forge-1.7.10-10.13.4.1558-1.7.10-src'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not download artifact 'org.apache.httpcomponents:httpcore:4.3.2:httpcore.jar'
> Failed to download resource 'http://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar'.
> Premature end of Content-Length delimited message body (expected: 282269; received: 21998
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Total time: 53.488 secs
* What went wrong:
A problem occurred configuring root project 'forge-1.7.10-10.13.4.1558-1.7.10-src'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not download artifact 'org.apache.httpcomponents:httpcore:4.3.2:httpcore.jar'
> Failed to download resource 'http://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar'.
> Premature end of Content-Length delimited message body (expected: 282269; received: 21998
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Total time: 53.488 secs
你忘记说了
要VPN或者http代理
否则速度慢如狗
要VPN或者http代理
否则速度慢如狗
补充一个1.11.2的实例吧
里面有1.11.2的基本的mod框架
block方块的例子
tileEntity的简单例子
item物品的例子
blockState的例子
还有一个线缆的例子,特性接近IC2的线缆,可以互相连接,还展示了碰撞箱的使用方式
兼容多人模式
https://github.com/rikka0w0/MinecraftModBasicDemo
里面有1.11.2的基本的mod框架
block方块的例子
tileEntity的简单例子
item物品的例子
blockState的例子
还有一个线缆的例子,特性接近IC2的线缆,可以互相连接,还展示了碰撞箱的使用方式
兼容多人模式
https://github.com/rikka0w0/MinecraftModBasicDemo
金坷居士 发表于 2017-6-1 16:45
补充一个1.11.2的实例吧
里面有1.11.2的基本的mod框架
block方块的例子
好东西,感谢分享!
本帖最后由 猜猜谁是谁 于 2017-6-11 19:23 编辑
为什么运行范例时有错误?@zkm0032描述 资源 路径 位置 类型
项目“MDKExample”缺少必需的库:”D:\forge-1.11.2-13.20.0.2228-mdk\unresolved dependency - net.minecraftforge forgeBin 1.11.2-13.20.0.2228” MDKExample 构建路径 构建路径问题
为什么运行范例时有错误?@zkm0032描述 资源 路径 位置 类型
项目“MDKExample”缺少必需的库:”D:\forge-1.11.2-13.20.0.2228-mdk\unresolved dependency - net.minecraftforge forgeBin 1.11.2-13.20.0.2228” MDKExample 构建路径 构建路径问题
猜猜谁是谁 发表于 2017-6-11 19:09
为什么运行范例时有错误?@zkm0032描述 资源 路径 位置 类型
项目“MDKExample”缺少必需的库 ...
环境可能没构建完成吧,有build susses吗?
aiwdsj 发表于 2017-2-14 22:11
你这个是java分配不到足够的内存。需要3G
Could not reserve enough space for 3145728KB object heap
...
那怎么分配3G
Download http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGradle/2.3-SNAPSHOT/ForgeGradle-2.3-20170630.061630-6.jar
> Configuring > 0/1 projects > root project > 187 KB/13.32 MB downloaded
下到187KB就不下了。。。怎么办。重新来一次吗
> Configuring > 0/1 projects > root project > 187 KB/13.32 MB downloaded
下到187KB就不下了。。。怎么办。重新来一次吗
白泽大屌 发表于 2017-7-4 15:32
那怎么分配3G
64位操作系统,空闲内存足够多基本上就没问题
大佬我的提示这个
所在位置 行:1 字符: 30
+ gradlew setupDecompWorkspace && gradlew eclipse
+ ~~
标记“&&”不是此版本中的有效语句分隔符。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidEndOfLine
求帮忙
所在位置 行:1 字符: 30
+ gradlew setupDecompWorkspace && gradlew eclipse
+ ~~
标记“&&”不是此版本中的有效语句分隔符。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidEndOfLine
求帮忙
输入gradlew setupDecompWorkspace && gradlew eclipse后出现Downloading https://services.gradle.org/distributions/gradle-2.14-bin.zip然后后面都是在打点不停正常吗
楼主我的配置成功了****************************
Powered By MCP:
http://modcoderpack.com/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
MCP Data version : unknown
****************************
:eclipseClasspath
:eclipseJdt
:eclipseProject
:eclipse
BUILD SUCCESSFUL
但是运行时出现了
错误: 找不到或无法加载主类 GradleStartServer
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
怎么回事?
Powered By MCP:
http://modcoderpack.com/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
MCP Data version : unknown
****************************
:eclipseClasspath
:eclipseJdt
:eclipseProject
:eclipse
BUILD SUCCESSFUL
但是运行时出现了
错误: 找不到或无法加载主类 GradleStartServer
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
怎么回事?
spider853 发表于 2017-8-19 09:59
楼主我的配置成功了****************************
Powered By MCP:
http://modcoderpack.com/
我把forgeSRC里的eclipse文件夹里的eula.txt里的eula改成了true,解决了
aiwdsj 发表于 2017-7-6 23:48
64位操作系统,空闲内存足够多基本上就没问题
32位咋办
求1.7.10的MDK
楼主你太好了,我源码下不了你给了我下载地址!万分感谢!
本帖最后由 我叫帅@@哥 于 2017-10-9 19:17 编辑
进eclipse后提示:
进eclipse后提示:

谢了,楼主。
楼主,出现这种情况咋整?
****************************
Powered By MCP:
http://modcoderpack.com/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
MCP Data version : unknown
****************************
:extractMcpData UP-TO-DATE
:getVersionJson
:extractUserDev UP-TO-DATE
:genSrgs SKIPPED
:extractNatives UP-TO-DATE
:getAssetsIndex
:getAssets
:makeStart
[ant:javac] 警告: [options] 未与 -source 1.6 一起设置引导类路径
[ant:javac] 1 个警告
:downloadMcpTools SKIPPED
:downloadClient SKIPPED
> Building 50% > :downloadServer
****************************
Powered By MCP:
http://modcoderpack.com/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
MCP Data version : unknown
****************************
:extractMcpData UP-TO-DATE
:getVersionJson
:extractUserDev UP-TO-DATE
:genSrgs SKIPPED
:extractNatives UP-TO-DATE
:getAssetsIndex
:getAssets
:makeStart
[ant:javac] 警告: [options] 未与 -source 1.6 一起设置引导类路径
[ant:javac] 1 个警告
:downloadMcpTools SKIPPED
:downloadClient SKIPPED
> Building 50% > :downloadServer
能发一下1.12或1.12.2的版本吗,我翻不了墙
ggwwwang 发表于 2018-1-10 22:38
能发一下1.12或1.12.2的版本吗,我翻不了墙
谢谢各位大佬了
请问这是成功了还是没有啊
lz,为什么改了地址还是不行
[img]QQ截图20180128175701.png
[/img]
[/img]
C:\Users\Administrator\Pictures\QQ截图20180128175701.png
这样咋办?哪里出错了
C:\Users\Administrator\Desktop\Mods\1.11开发>gradlew setupDecompWorkspace && gra
dlew eclipse
To honour the JVM settings for this build a new JVM will be forked. Please consi
der using the daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html.
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/
2.14/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
To honour the JVM settings for this build a new JVM will be forked. Please consi
der using the daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html.
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/
2.14/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
C:\Users\Administrator\Desktop\Mods\1.11开发>
点击gradlew.bat之后只是闪了一下就没了,输入gradlew setupDecompWorkspace && gradlew eclipse后显示Please set the JAVA_HOME variable in your environment to match thelocation of your Java installation. 求指正(win10系统,64位,forge是直接从上文附带的压缩包里取的, 然后Java版本1.8.0_162)
本帖最后由 詻仟 于 2018-4-15 13:45 编辑
很棒的MOD制作教程~感谢楼主不过建议楼主或许有空可以出一些视频什么的。。毕竟单单文字有点不好理解
很棒的MOD制作教程~感谢楼主不过建议楼主或许有空可以出一些视频什么的。。毕竟单单文字有点不好理解
等提示符BUILD SUCCESSFUL等了一万年
eclipseClasspath好像有问题,楼主能帮我看看吗
然后出现了这样的错误
啊啊啊啊啊啊啊啊啊啊啊啊啊啊阿
ERROR: JAVA_HOME is set to an invalid directory: JAVA_HOME:"=C:\Program Files\Java\jdk1.8.0_181
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
我得java路径是对的啊,为什么提示找不到啊,环境变量也没问题
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
我得java路径是对的啊,为什么提示找不到啊,环境变量也没问题
QINS 发表于 2018-10-11 21:52
ERROR: JAVA_HOME is set to an invalid directory: JAVA_HOME:"=C:\Program Files\Java\jdk1.8.0_181
Plea ...
已解决。。。之前环境变量错误的时候,我就将gradlew文件的路径给改了,所以报错了
ustc_zzzz 发表于 2017-2-6 10:46
并没有做错,这是正常现象,如果一个点都不跳反倒需要考虑一下网络问题了。。。 ...
大佬则么办
本帖最后由 老曾滑稽 于 2019-6-15 13:26 编辑
C:\Users\Administrator\Desktop\捕获.png
C:\Users\Administrator\Desktop\捕获.png
求解!卡在mod开发环境的配置了!
本人懂Java
刚开始还好好的
到后面就一直报错
FAILURE: Build failed with an exception.
* Where:
Build file '(mdk跟文件夹 路径合法)\build.gradle' line: 10
* What went wrong:
A problem occurred evaluating root project '(mdk根文件夹)'.
> org.gradle.api.internal.TaskOutputsInternal.dir(Ljava/lang/Object;)Lorg/gradle/api/tasks/TaskOutputs;
求手动配置方法!
本人懂Java
刚开始还好好的
到后面就一直报错
FAILURE: Build failed with an exception.
* Where:
Build file '(mdk跟文件夹 路径合法)\build.gradle' line: 10
* What went wrong:
A problem occurred evaluating root project '(mdk根文件夹)'.
> org.gradle.api.internal.TaskOutputsInternal.dir(Ljava/lang/Object;)Lorg/gradle/api/tasks/TaskOutputs;
求手动配置方法!
本帖最后由 浪客前行 于 2020-2-1 06:13 编辑
更改JAVA_HOME路径无效怎么办?
更改JAVA_HOME路径无效怎么办?
D:\图片这个咋整
膜拜大神
有没有1.15的forge
技术党啊!!!
src下载不了emm