试图用forge修改minecraft1.12.2的问题。无法包装和测试构建

我无法从 eclipse 获得一个测试构建运行。我在 Windows 10 上运行 java openjdk 版本“1.8.0_242”

我无法从 eclipse 获得一个测试构建运行。我在 Windows 10 上运行 java openjdk 版本“1.8.0_242”

我已经按照各种教程一步一步,但不断得到这个错误。我也尝试运行一个新的构建,我没有编辑,它似乎崩溃了同样的问题。

最新的崩溃日志。

[13:36:53] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/nebbu/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[13:36:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[13:36:53] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[13:36:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[13:36:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[13:36:53] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2768 for Minecraft 1.12.2 loading
[13:36:53] [main/INFO] [FML]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_242, running on Windows 10:amd64:10.0, installed at C:\Program Files\AdoptOpenJDK\jdk-8.0.242.08-hotspot\jre
[13:36:53] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
[13:36:53] [main/ERROR] [FML]: Full: C:\Users\nebbu\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
[13:36:53] [main/ERROR] [FML]: Trimmed: c:/users/nebbu/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
[13:36:53] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[13:36:53] [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs.
[13:36:54] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
[13:36:54] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
[13:36:54] [main/INFO] [FML]: Searching C:\Users\nebbu\Desktop\Minecraft Modding\TutorialMod\run\.\mods for mods
[13:36:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[13:36:54] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[13:36:54] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[13:36:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[13:36:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[13:36:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[13:36:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[13:36:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[13:36:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[13:36:54] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[13:36:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[13:36:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[13:36:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[13:36:55] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[13:36:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[13:36:55] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[13:36:55] [main/ERROR] [LaunchWrapper]: Unable to launch
java.lang.reflect.InvocationTargetException: null
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_242]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_242]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_242]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_242]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_242]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_242]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_242]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_242]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:25) [start/:?]
Caused by: java.lang.ExceptionInInitializerError
    at net.minecraft.client.Minecraft.getSystemTime(Minecraft.java:3158) ~[Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:42) ~[Main.class:?]
    ... 12 more
Caused by: java.lang.NullPointerException
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1847) ~[?:1.8.0_242]
    at java.lang.Runtime.loadLibrary0(Runtime.java:871) ~[?:1.8.0_242]
    at java.lang.System.loadLibrary(System.java:1124) ~[?:1.8.0_242]
    at org.lwjgl.Sys$1.run(Sys.java:72) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_242]
    at org.lwjgl.Sys.doLoadLibrary(Sys.java:66) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
    at org.lwjgl.Sys.loadLibrary(Sys.java:87) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
    at org.lwjgl.Sys.<clinit>(Sys.java:117) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
    at net.minecraft.client.Minecraft.getSystemTime(Minecraft.java:3158) ~[Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:42) ~[Main.class:?]
    ... 12 more
[13:36:55] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.reflect.InvocationTargetException
[13:36:55] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[13:36:55] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[13:36:55] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[13:36:55] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:    at java.lang.reflect.Method.invoke(Method.java:498)
[13:36:55] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
[13:36:55] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:    at GradleStart.main(GradleStart.java:25)
[13:36:55] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1061]: Caused by: net.minecraftforge.fml.relauncher.FMLSecurityManager$ExitTrappedException
[13:36:55] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1061]:    at net.minecraftforge.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:49)
[13:36:55] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1061]:    at java.lang.SecurityManager.checkExit(SecurityManager.java:761)
[13:36:55] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1061]:    at java.lang.Runtime.exit(Runtime.java:108)
[13:36:55] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1061]:    at java.lang.System.exit(System.java:973)
[13:36:55] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1061]:    at net.minecraft.launchwrapper.Launch.launch(Launch.java:138)
[13:36:55] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1061]:    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
[13:36:55] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1061]:    ... 6 more

我的 build.gradle

    repositories {
        jcenter()
        maven { url = "http://files.minecraftforge.net/maven" }
    }
    dependencies {
        classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
    }
}
apply plugin: 'net.minecraftforge.gradle.forge'
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
version = "1.0"
group = "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "modid"
sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
compileJava {
    sourceCompatibility = targetCompatibility = '1.8'
}
minecraft {
    version = "1.12.2-14.23.5.2768"
    runDir = "run"
    // the mappings can be changed at any time, and must be in the following format.
    // snapshot_YYYYMMDD   snapshot are built nightly.
    // stable_#            stables are built at the discretion of the MCP team.
    // Use non-default mappings at your own risk. they may not always work.
    // simply re-run your setup task after changing the mappings to update your workspace.
    mappings = "snapshot_20171003"
    // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
}
dependencies {
    // you may put jars on which you depend on in ./libs
    // or you may define them like so..
    //compile "some.group:artifact:version:classifier"
    //compile "some.group:artifact:version"
    // real examples
    //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev'  // adds buildcraft to the dev env
    //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
    // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
    //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
    // the deobf configurations:  'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
    // except that these dependencies get remapped to your current MCP mappings
    //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
    //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
    // for more info...
    // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
    // http://www.gradle.org/docs/current/userguide/dependency_management.html
}
processResources {
    // this will ensure that this task is redone when the versions change.
    inputs.property "version", project.version
    inputs.property "mcversion", project.minecraft.version
    // replace stuff in mcmod.info, nothing else
    from(sourceSets.main.resources.srcDirs) {
        include 'mcmod.info'
        // replace version and mcversion
        expand 'version':project.version, 'mcversion':project.minecraft.version
    }
    // copy everything else except the mcmod.info
    from(sourceSets.main.resources.srcDirs) {
        exclude 'mcmod.info'
    }
}

任何帮助非常感谢

0

这看起来像 Java 8u242 的某个兼容性问题尚未解决。目前,最好的解决方法是降级到 Java 8u232。

本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处

(515)
iOS应用程序 Facebook应用程序事件的请求跟踪授权
上一篇
如何防止Chrome开发人员工具在当前浏览器窗口关闭时关闭
下一篇

相关推荐

  • 我的世界mod懒人包:如何告诉这个MinecraftFabricmod使用modmenu-2.0.14

    关于我的世界mod懒人包的问题,在minecraft mod men中经常遇到,我想将这个 mod(https://github.com/LambdAurora/MCPatcherPatcher)更新到 minecraft 版本 1.17.1,我已经学到了很多。如果你一周前问我 gradle 是什么或者 github 是如何工作的,我会给你一个空白的凝视。…

    2022-11-24 11:28:27
    0 89 36
  • Minecraft服务器必备插件:将插件添加到 Minecraft服务器

    关于Minecraft服务器必备插件的问题,在add bukkit to minecraft server中经常遇到,我下载了 minecraft java 服务器.jar 文件,它运行良好。但现在我想将 java 插件添加到服务器中。我该怎么做?…

    2022-12-24 10:01:51
    0 95 33
  • Minecraft插件 |创建NPC不工作

    我想用命令创建一个 NPC。…

    2022-11-11 15:18:07
    0 67 47
  • Minecraft插件 |创建NPC不工作

    我想用命令创建一个 NPC。…

    2022-11-19 01:11:34
    0 84 83
  • css预编译器: center;}

    CSS预编译器是一种用于构建CSS的工具,它可以将CSS代码转换为更易于管理和维护的格式。它们可以使CSS代码更加灵活,更易于重用,并且可以帮助开发人员更轻松地组织和管理CSS代码。…

    2023-01-05 06:29:43
    0 83 27
  • linux的共享文件夹在哪个目录:Linux共享文件夹在/etc/samba目录下

    Linux的共享文件夹在/var/lib/samba/目录下,查看该目录下的文件可以使用以下代码:ls /var/lib/samba/…

    2023-01-21 15:31:10
    0 66 21
  • type c接口是啥改变你的充电体验

    示例示例Type C接口是一种新型的USB连接器,它可以支持更高的数据传输速度,比传统的USB 0接口更快。与传统的USB接口不同,Type C接口可以在两端都使用,无需额外的翻转,使连接更加方便快捷。下面是一个使用Type C接口的代码示例:…

    2023-01-12 02:06:09
    0 44 57
  • carwings是什么意思智能汽车连接系统的未来

    Carwings是日产汽车公司推出的一款远程智能汽车服务,它可以帮助用户远程监控汽车的状态和行驶信息,并且可以远程控制汽车的功能。…

    2023-01-19 13:55:38
    0 38 13

发表评论

登录 后才能评论

评论列表(58条)