尝试用MCP反编译Minecraft 1.12时出现巨大错误

尝试用MCP反编译Minecraft 1.12时出现巨大错误,minecraft,Minecraft,我一直在尝试使用MCP将Minecraft源代码反编译到eclipse工作区。我正在使用mcp940对Minecraft 1.12进行反编译。当我运行批处理文件decompile.bat时,它会给我一大堆错误。我在看这个问题底部链接的视频教程,主持人完全跳过了这一步。eclipse工作区仍然加载并拥有所有代码,但所述代码充满了错误。当我尝试运行带有main方法的类Start时,会收到以下错误消息: Error: Could not create the Java Virtual Machine.

我一直在尝试使用MCP将Minecraft源代码反编译到eclipse工作区。我正在使用mcp940对Minecraft 1.12进行反编译。当我运行批处理文件
decompile.bat
时,它会给我一大堆错误。我在看这个问题底部链接的视频教程,主持人完全跳过了这一步。eclipse工作区仍然加载并拥有所有代码,但所述代码充满了错误。当我尝试运行带有main方法的类
Start
时,会收到以下错误消息:

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
视频教程链接到另一个关于修复realms jar版本的视频教程(也在下面链接)。我解决了这个问题,但似乎这个问题只是众多问题中的一个。 修复此部件后,我尝试运行它,但仍然收到相同的错误消息

以下是控制台的输出:

== MCP 9.40 (data: 9.40, client: 1.12, server: 1.12) ==
> Searching for javac.exe in C:\Program Files
"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 config, rg, ss
Looking in C:\Users\Calvin\AppData\Roaming\.minecraft\versions for mc installs... OK
Copying assets... OK
Parsing JSON file... OK
Looking for minecraft main jar... Not found
Copying minecraft main jar... OK
> Checking libraries...
        Copying library jinput... OK
        Copying library icu4j-core-mojang... OK
        Copying library httpcore... OK
        Copying library log4j-api... OK
        Copying library commons-lang3... OK
        Copying library jna... OK
        Copying library lwjgl-platform-natives-windows... OK
        Copying library libraryjavasound... OK
        Copying library jopt-simple... OK
        Copying library text2speech... OK
        Copying library guava... OK
        Copying library oshi-core... OK
        Copying library httpclient... OK
        Copying library commons-compress... OK
        Copying library text2speech-natives-windows... OK
        Copying library fastutil... OK
        Copying library platform... OK
        Copying library codecjorbis... OK
        Copying library soundsystem... OK
        Copying library librarylwjglopenal... OK
        Copying library lwjgl_util... OK
        Copying library commons-codec... OK
        Copying library jutils... OK
        Copying library patchy... OK
        Copying library commons-logging... OK
        Copying library lwjgl... OK
        Copying library commons-io... OK
        Copying library realms... OK
        Copying library authlib... OK
        Copying library gson... OK
        Copying library jinput-platform-natives-windows... OK
        Copying library codecwav... OK
        Copying library log4j-core... OK
        Copying library netty-all... OK
> Checking Natives...
        Extracting native lwjgl.dll... OK
        Extracting native OpenAL32.dll... OK
        Extracting native jinput-dx8_64.dll... OK
        Extracting native SAPIWrapper_x86.dll... OK
        Extracting native jinput-wintab.dll... OK
        Extracting native jinput-dx8.dll... OK
        Extracting native jinput-raw.dll... OK
        Extracting native OpenAL64.dll... OK
        Extracting native SAPIWrapper_x64.dll... OK
        Extracting native jinput-raw_64.dll... OK
        Extracting native lwjgl64.dll... OK
> Copying jsr305-3.0.1.jar to Libraries
> Copying jsr305-3.0.1-sources.jar to Libraries
== Decompiling client using fernflower ==
> Creating SRGs
> Applying SpecialSource
> Applying MCInjector
> Creating renamed srg
> Filtering classes
> Decompiling
> Unpacking jar
> Copying sources
> Generating package-info files
> Applying fernflower fixes
> Applying patches
'runtime\bin\applydiff.exe -p1 -u -i ..\..\temp\temp.patch -d src\minecraft' failed : 1

== ERRORS FOUND ==

1 out of 1 hunk FAILED -- saving rejects to file 'net\minecraft\advancements\PlayerAdvance#'
==================

'runtime\bin\applydiff.exe -p1 -u -i ..\..\temp\temp.patch -d src\minecraft' failed : 1

== ERRORS FOUND ==

1 out of 2 hunks FAILED -- saving rejects to file 'net\minecraft\client\renderer\entity\RenderManager#'
==================

'runtime\bin\applydiff.exe -p1 -u -i ..\..\temp\temp.patch -d src\minecraft' failed : 1

== ERRORS FOUND ==

1 out of 2 hunks FAILED -- saving rejects to file 'net\minecraft\util\math\Cartesian.jav#'
==================

'runtime\bin\applydiff.exe -p1 -u -i ..\..\temp\temp.patch -d src\minecraft' failed : 1

== ERRORS FOUND ==

1 out of 1 hunk FAILED -- saving rejects to file 'net\minecraft\client\util\SearchTree.ja#'
==================

'runtime\bin\applydiff.exe -p1 -u -i ..\..\temp\temp.patch -d src\minecraft' failed : 1

== ERRORS FOUND ==

1 out of 1 hunk FAILED -- saving rejects to file 'net\minecraft\client\renderer\block\statemap\StateMap.java#'
==================

'runtime\bin\applydiff.exe -p1 -u -i ..\..\temp\temp.patch -d src\minecraft' failed : 1

== ERRORS FOUND ==

1 out of 1 hunk FAILED -- saving rejects to file 'net\minecraft\client\gui\GuiSnooper.ja#'
==================

'runtime\bin\applydiff.exe -p1 -u -i ..\..\temp\temp.patch -d src\minecraft' failed : 1

== ERRORS FOUND ==

2 out of 2 hunks ignored -- saving rejects to file 'net\minecraft\block\state\pattern\BlockStateMat#'
==================

> Cleaning comments
- Done in 2605.28 seconds
== Reformating client ==
> Cleaning sources
> Replacing OpenGL constants
> Reformating sources
- Done in 118.96 seconds
== Updating client ==
> Adding javadoc
> Renaming sources
- Done in 126.23 seconds
!! Missing server jar file. Aborting !!
== Recompiling client ==
> Cleaning bin
> Recompiling
'"C:\Program Files\Java\jdk-10.0.2\bin\javac" -Xlint:-options -deprecation -g -source 1.8 -target 1.8 -classpath "jars\versions\1.12\1.12.jar;lib;lib\*;jars\libraries\com\google\code\findbugs\jsr305\3.0.1\jsr305-3.0.1.jar;jars\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar;jars\libraries\com\ibm\icu\icu4j-core-mojang\51.2\icu4j-core-mojang-51.2.jar;jars\libraries\org\apache\httpcomponents\httpcore\4.3.2\httpcore-4.3.2.jar;jars\libraries\org\apache\logging\log4j\log4j-api\2.8.1\log4j-api-2.8.1.jar;jars\libraries\org\apache\commons\commons-lang3\3.5\commons-lang3-3.5.jar;jars\libraries\net\java\dev\jna\jna\4.4.0\jna-4.4.0.jar;jars\libraries\org\lwjgl\lwjgl\lwjgl-platform\2.9.4-nightly-20150209\lwjgl-platform-2.9.4-nightly-20150209-natives-windows.jar;jars\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar;jars\libraries\net\sf\jopt-simple\jopt-simple\5.0.3\jopt-simple-5.0.3.jar;jars\libraries\com\mojang\text2speech\1.10.3\text2speech-1.10.3.jar;jars\libraries\com\google\guava\guava\21.0\guava-21.0.jar;jars\libraries\oshi-project\oshi-core\1.1\oshi-core-1.1.jar;jars\libraries\org\apache\httpcomponents\httpclient\4.3.3\httpclient-4.3.3.jar;jars\libraries\org\apache\commons\commons-compress\1.8.1\commons-compress-1.8.1.jar;jars\libraries\com\mojang\text2speech\1.10.3\text2speech-1.10.3-natives-windows.jar;jars\libraries\it\unimi\dsi\fastutil\7.1.0\fastutil-7.1.0.jar;jars\libraries\net\java\dev\jna\platform\3.4.0\platform-3.4.0.jar;jars\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar;jars\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar;jars\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar;jars\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.4-nightly-20150209\lwjgl_util-2.9.4-nightly-20150209.jar;jars\libraries\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;jars\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar;jars\libraries\com\mojang\patchy\1.1\patchy-1.1.jar;jars\libraries\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar;jars\libraries\org\lwjgl\lwjgl\lwjgl\2.9.4-nightly-20150209\lwjgl-2.9.4-nightly-20150209.jar;jars\libraries\commons-io\commons-io\2.5\commons-io-2.5.jar;jars\libraries\com\mojang\realms\1.10.17\realms-1.10.17.jar;jars\libraries\com\mojang\authlib\1.5.25\authlib-1.5.25.jar;jars\libraries\com\google\code\gson\gson\2.8.0\gson-2.8.0.jar;jars\libraries\net\java\jinput\jinput-platform\2.0.5\jinput-platform-2.0.5-natives-windows.jar;jars\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar;jars\libraries\org\apache\logging\log4j\log4j-core\2.8.1\log4j-core-2.8.1.jar;jars\libraries\io\netty\netty-all\4.1.9.Final\netty-all-4.1.9.Final.jar" -sourcepath src\minecraft -d bin\minecraft @temp\java_src_client.txt' failed : 1

== ERRORS FOUND in JAVA CODE ==


            this.block.addCollisionBoxToList(this, worldIn, pos, p_185908_3_, p_185908_4_, p_185908_5_, p_185908_6_);
                      ^

src\minecraft\net\minecraft\block\state\pattern\BlockStateMatcher.java:64: error: incompatible types: inference variable T#1 has incompatible bounds
        return predicate.apply(blockState.getValue(property));
                        ^

    equality constraints: T#2
    upper bounds: CAP#1,Comparable<T#1>
  where T#1,T#2 are type-variables:
    T#1 extends Comparable<T#1> declared in method <T#1>getValue(IProperty<T#1>)
    T#2 extends Comparable<T#2> declared in method <T#2>matches(IBlockState,IProperty<T#2>,Predicate<?>)
  where CAP#1 is a fresh type-variable:
    CAP#1 extends Object from capture of ?
src\minecraft\net\minecraft\client\renderer\entity\RenderManager.java:266: error: incompatible types: bad type in conditional expression
            return renderplayer != null ? renderplayer : this.playerRenderer;
                                          ^

    RenderPlayer cannot be converted to Render<T>
  where T is a type-variable:
    T extends Entity declared in method <T>getEntityRenderObject(Entity)
src\minecraft\net\minecraft\client\renderer\entity\RenderManager.java:266: error: incompatible types: bad type in conditional expression
            return renderplayer != null ? renderplayer : this.playerRenderer;
                                                             ^

    RenderPlayer cannot be converted to Render<T>
  where T is a type-variable:
    T extends Entity declared in method <T>getEntityRenderObject(Entity)
src\minecraft\net\minecraft\client\gui\GuiIngame.java:1304: error: incompatible types: Object cannot be converted to IChatListener
        for (IChatListener ichatlistener : (List)this.field_191743_I.get(p_191742_1_))
                                           ^

src\minecraft\net\minecraft\client\util\SearchTree.java:54: error: cannot find symbol
            this.field_194045_b.func_194057_a(p_194039_1_, p_194039_2_.toString().toLowerCase(Locale.ROOT));
                                              ^

  symbol:   variable p_194039_1_
  location: class SearchTree<T>
  where T is a type-variable:
    T extends Object declared in class SearchTree
src\minecraft\net\minecraft\client\util\SearchTree.java:58: error: cannot find symbol
            this.field_194044_a.func_194057_a(p_194041_1_, p_194041_2_.toLowerCase(Locale.ROOT));
                                              ^

  symbol:   variable p_194041_1_
  location: class SearchTree<T>
  where T is a type-variable:
    T extends Object declared in class SearchTree
src\minecraft\net\minecraft\client\util\SearchTree.java:58: error: cannot find symbol
            this.field_194044_a.func_194057_a(p_194041_1_, p_194041_2_.toLowerCase(Locale.ROOT));
                                                                      ^

  symbol:   method toLowerCase(Locale)
  location: variable p_194041_2_ of type Object
src\minecraft\net\minecraft\client\gui\GuiSnooper.java:51: error: incompatible types: Object cannot be converted to Entry<String,String>
        for (Entry<String, String> entry : (new TreeMap(this.mc.getPlayerUsageSnooper().getCurrentStats())).entrySet())
                                                                                                                    ^

src\minecraft\net\minecraft\client\gui\GuiSnooper.java:59: error: incompatible types: Object cannot be converted to Entry<String,String>
            for (Entry<String, String> entry1 : (new TreeMap(this.mc.getIntegratedServer().getPlayerUsageSnooper().getCurrentStats())).entrySet())
                                                                                                                                               ^

src\minecraft\net\minecraft\client\gui\recipebook\GuiButtonRecipeTab.java:33: error: incompatible types: Object cannot be converted to RecipeList
        for (RecipeList recipelist : (List)RecipeBookClient.field_194086_e.get(this.field_193921_u))
                                     ^

src\minecraft\net\minecraft\client\renderer\block\model\ModelBakery.java:492: error: incompatible types: Object cannot be converted to ModelResourceLocation
            for (ModelResourceLocation modelresourcelocation1 : (Collection)entry.getValue())
                                                                ^

src\minecraft\net\minecraft\client\renderer\block\statemap\StateMap.java:57: error: incompatible types: Comparable cannot be converted to T
        return p_187490_1_.getName((Comparable)p_187490_2_.remove(this.name));
                                   ^

  where T is a type-variable:
    T extends Comparable<T> declared in method <T>removeName(IProperty<T>,Map<IProperty<?>,Comparable<?>>)
src\minecraft\net\minecraft\client\resources\FolderResourcePack.java:83: error: reference to listFiles is ambiguous
            for (File file2 : file1.listFiles(DirectoryFileFilter.DIRECTORY))
                                   ^

  both method listFiles(FilenameFilter) in File and method listFiles(FileFilter) in File match
src\minecraft\net\minecraft\util\math\Cartesian.java:57: error: incompatible types: inference variable T#1 has incompatible bounds
            return Arrays.asList(p_apply_1_);
                                ^

    equality constraints: T#2
    lower bounds: Object
  where T#1,T#2 are type-variables:
    T#1 extends Object declared in method <T#1>asList(T#1...)
    T#2 extends Object declared in class GetList
15 errors
100 warnings
==================

Initial client recompile failed, correct source then run updatemd5

Press any key to continue . . .
==MCP 9.40(数据:9.40,客户端:1.12,服务器:1.12)==
>在C:\Program文件中搜索javac.exe
在路径上找不到“scalac”。Scala文件将不会重新编译
#找到ff、ff补丁、SRG、名称CSV、文档CSV、参数CSV、astyle、astyle配置、rg、ss
正在查找mc安装的C:\Users\Calvin\AppData\Roaming\.minecraft\versions。。。好啊
正在复制资产。。。好啊
正在分析JSON文件。。。好啊
寻找minecraft主罐。。。找不到
复制minecraft主罐。。。好啊
>正在检查库。。。
正在复制库文件。。。好啊
复制库icu4j core mojang。。。好啊
正在复制库httpcore。。。好啊
正在复制库log4j api。。。好啊
正在复制库commons-lang3。。。好啊
正在复制库jna。。。好啊
正在复制库lwjgl平台本机windows。。。好啊
正在复制库JavaSound。。。好啊
正在复制库jopt simple。。。好啊
正在复制库text2speech。。。好啊
复制库番石榴。。。好啊
复制库oshi核心。。。好啊
正在复制库httpclient。。。好啊
正在复制库公用文件压缩。。。好啊
正在复制库文本2Speech本机windows。。。好啊
正在复制库fastutil。。。好啊
正在复制库平台。。。好啊
正在复制库codecjorbis。。。好啊
正在复制库系统。。。好啊
正在复制库LibraryWJglopenal。。。好啊
正在复制库lwjgl_util。。。好啊
正在复制库公用编解码器。。。好啊
正在复制库jutils。。。好啊
复制库补丁。。。好啊
正在复制库公用程序日志。。。好啊
正在复制库lwjgl。。。好啊
正在复制库公用io。。。好啊
正在复制库领域。。。好啊
正在复制库authlib。。。好啊
正在复制库gson。。。好啊
正在复制库jinput平台本机windows。。。好啊
正在复制库编解码器。。。好啊
正在复制库log4j core。。。好啊
复制图书馆所有。。。好啊
>检查本地人。。。
正在提取本机lwjgl.dll。。。好啊
正在提取本机OpenAL32.dll。。。好啊
正在提取本机jinput-dx8_64.dll。。。好啊
正在提取本机sapiwraper_x86.dll。。。好啊
正在提取本机jinput wintab.dll。。。好啊
正在提取本机jinput-dx8.dll。。。好啊
正在提取本机jinput raw.dll。。。好啊
正在提取本机OpenAL64.dll。。。好啊
正在提取本机sapiwraper_x64.dll。。。好啊
正在提取本机jinput-raw_64.dll。。。好啊
正在提取本机lwjgl64.dll。。。好啊
>将jsr305-3.0.1.jar复制到库
>将jsr305-3.0.1-sources.jar复制到库
==使用fernflower反编译客户端==
>创建SRG
>应用特殊资源
>应用微型注射器
>创建重命名的srg
>过滤类
>反编译
>开箱罐
>复制源
>生成包信息文件
>应用蕨类植物修复
>应用补丁
“runtime\bin\applydiff.exe-p1-u-i….\temp\temp.patch-d src\minecraft”失败:1
==发现错误==
1个大块头中有1个失败--将拒绝保存到文件“net\minecraft\advances\PlayerAdvance”
==================
“runtime\bin\applydiff.exe-p1-u-i….\temp\temp.patch-d src\minecraft”失败:1
==发现错误==
2个大块头中有1个失败--将拒绝保存到文件“net\minecraft\client\renderer\entity\RenderManager”
==================
“runtime\bin\applydiff.exe-p1-u-i….\temp\temp.patch-d src\minecraft”失败:1
==发现错误==
2个大块头中有1个失败--将拒绝保存到文件“net\minecraft\util\math\Cartesian.jav#”
==================
“runtime\bin\applydiff.exe-p1-u-i….\temp\temp.patch-d src\minecraft”失败:1
==发现错误==
1个大块头中有1个失败--将拒绝保存到文件“net\minecraft\client\util\SearchTree.ja#”
==================
“runtime\bin\applydiff.exe-p1-u-i….\temp\temp.patch-d src\minecraft”失败:1
==发现错误==
1个大块头中有1个失败--将拒绝保存到文件“net\minecraft\client\renderer\block\statemap\statemap.java”
==================
“runtime\bin\applydiff.exe-p1-u-i….\temp\temp.patch-d src\minecraft”失败:1
==发现错误==
1个大块头中有1个失败--将拒绝保存到文件“net\minecraft\client\gui\GuiSnooper.ja#”
==================
“runtime\bin\applydiff.exe-p1-u-i….\temp\temp.patch-d src\minecraft”失败:1
==发现错误==
忽略2个大块头中的2个--将拒绝保存到文件“net\minecraft\block\state\pattern\BlockStateMat#”
==================
>清理意见
-在2605.28秒内完成
==重新格式化客户端==
>清洁源
>替换OpenGL常量
>重整来源
-以118.96秒完成
==正在更新客户端==
>添加javadoc
>重命名源
-以126.23秒完成
!! 缺少服务器jar文件。流产!!
==重新编译客户端==
>清洗箱
>重新编译
““C:\Program Files\Java\jdk-10.0.2\bin\javac”-Xlint:-选项-弃用-g-源代码1.8-目标1.8-类路径”jars\versions\1.12\1.12.jar;lib;lib\*;jars\libraries\com\google\code\findbugs\jsr305\3.0.1\jsr305-3.0.1.jar;jars\libraries\libraries\net\Java\jinput\jinput\2.0.5\jinput-2.0.5.5.jar;jars\libraries\com\ibm