反编译MCP错误(版本9.18)返回'反编译失败' 1

时间:2017-09-16 07:33:22

标签: java minecraft

我有一个64位系统并使用64位Java版本。

我想用mcp做一个minecraft mod。但总是当我反编译它时,我得到一个错误

有谁知道如何解决此错误? :d

== MCP 9.18 (data: 9.18, client: 1.8.8, server: 1.8.8) ==
"scalac" is not found on the PATH.  Scala files will not be recompiled
# found ff, ff patches, srgs, name csvs, doc csvs, param csvs, astyle, astyle co
nfig, rg, ss
== Decompiling client using fernflower ==
> Creating SRGs
> Applying SpecialSource
> Applying MCInjector
> Creating renamed srg
> Filtering classes
> Decompiling
'"C:\Program Files\Java\jdk1.8.0_144\bin\java" -Xmx2G runtime\bin\fernflower.jar
 -din=1 -rbr=1 -dgs=1 -asc=1 -rsy=1 -iec=1 -jvn=1 -log=WARN "-e=jars\libraries\n
et/java/jinput\jinput\2.0.5\jinput-2.0.5.jar" "-e=jars\libraries\org/lwjgl/lwjgl
\lwjgl-platform\2.9.4-nightly-20150209\lwjgl-platform-2.9.4-nightly-20150209-nat
ives-windows.jar" "-e=jars\libraries\com/ibm/icu\icu4j-core-mojang\51.2\icu4j-co
re-mojang-51.2.jar" "-e=jars\libraries\tv/twitch\twitch-external-platform\4.5\tw
itch-external-platform-4.5-natives-windows-64.jar" "-e=jars\libraries\org/apache
/httpcomponents\httpcore\4.3.2\httpcore-4.3.2.jar" "-e=jars\libraries\org/apache
/logging/log4j\log4j-api\2.0-beta9\log4j-api-2.0-beta9.jar" "-e=jars\libraries\o
rg/apache/commons\commons-lang3\3.3.2\commons-lang3-3.3.2.jar" "-e=jars\librarie
s\net/java/dev/jna\jna\3.4.0\jna-3.4.0.jar" "-e=jars\libraries\com/paulscode\lib
raryjavasound\20101123\libraryjavasound-20101123.jar" "-e=jars\libraries\net/sf/
jopt-simple\jopt-simple\4.6\jopt-simple-4.6.jar" "-e=jars\libraries\com/google/g
uava\guava\17.0\guava-17.0.jar" "-e=jars\libraries\oshi-project\oshi-core\1.1\os
hi-core-1.1.jar" "-e=jars\libraries\org/apache/httpcomponents\httpclient\4.3.3\h
ttpclient-4.3.3.jar" "-e=jars\libraries\org/apache/commons\commons-compress\1.8.
1\commons-compress-1.8.1.jar" "-e=jars\libraries\net/java/dev/jna\platform\3.4.0
\platform-3.4.0.jar" "-e=jars\libraries\com/paulscode\codecjorbis\20101023\codec
jorbis-20101023.jar" "-e=jars\libraries\com/paulscode\soundsystem\20120107\sound
system-20120107.jar" "-e=jars\libraries\com/paulscode\librarylwjglopenal\2010082
4\librarylwjglopenal-20100824.jar" "-e=jars\libraries\org/lwjgl/lwjgl\lwjgl_util
\2.9.4-nightly-20150209\lwjgl_util-2.9.4-nightly-20150209.jar" "-e=jars\librarie
s\commons-codec\commons-codec\1.9\commons-codec-1.9.jar" "-e=jars\libraries\net/
java/jutils\jutils\1.0.0\jutils-1.0.0.jar" "-e=jars\libraries\commons-logging\co
mmons-logging\1.1.3\commons-logging-1.1.3.jar" "-e=jars\libraries\org/lwjgl/lwjg
l\lwjgl\2.9.4-nightly-20150209\lwjgl-2.9.4-nightly-20150209.jar" "-e=jars\librar
ies\commons-io\commons-io\2.4\commons-io-2.4.jar" "-e=jars\libraries\com/mojang\
realms\1.7.39\realms-1.7.39.jar" "-e=jars\libraries\com/mojang\authlib\1.5.21\au
thlib-1.5.21.jar" "-e=jars\libraries\com/google/code/gson\gson\2.2.4\gson-2.2.4.
jar" "-e=jars\libraries\com/mojang\netty\1.6\netty-1.6.jar" "-e=jars\libraries\t
v/twitch\twitch\6.5\twitch-6.5.jar" "-e=jars\libraries\com/paulscode\codecwav\20
101023\codecwav-20101023.jar" "-e=jars\libraries\tv/twitch\twitch-platform\6.5\t
witch-platform-6.5-natives-windows-64.jar" "-e=jars\libraries\net/java/jinput\ji
nput-platform\2.0.5\jinput-platform-2.0.5-natives-windows.jar" "-e=jars\librarie
s\org/apache/logging/log4j\log4j-core\2.0-beta9\log4j-core-2.0-beta9.jar" "-e=ja
rs\libraries\io/netty\netty-all\4.0.23.Final\netty-all-4.0.23.Final.jar" temp/mi
necraft_ff_in.jar temp\src\minecraft' failed : 1
Decompile failed
Drücken Sie eine beliebige Taste . . .

1 个答案:

答案 0 :(得分:0)

在MCP文件夹中,打开conf文件夹,然后使用您选择的文本编辑器打开mcp.cfg。然后,找到这条线(在底部附近)

CmdFernflower = %s -jar %s -din=1 -rbr=0 -dgs=1 -asc=1 -log=WARN {indir} {outdir}

并替换为:

CmdFernflower = %s -Xmx2G -jar %s -din=1 -rbr=0 -dgs=1 -asc=1 -log=WARN {indir} {outdir}

(您可能需要更改其他行,还需要在-jar之前添加-Xmx2G,但是根据我的经验,似乎不需要。)

这将运行带有额外RAM的反编译器,这应该可以解决此问题。