【解決済み】Eclipseで1.7.10の自分で作るModを起動しようとするとエラーが出る

Modding・サーバPlugin制作・ツール制作など、開発関連の質問があればこちらにお願い致します。
フォーラムルール
質問関連フォーラムで質問する時は、必ず次のトピックを一読/厳守お願い致します。
viewtopic.php?f=5&t=999
  • (PostNo.229671)

【解決済み】Eclipseで1.7.10の自分で作るModを起動しようとするとエラーが出る

投稿記事by じゃmp★ » 2015年4月30日(木) 01:34

-----解決しました-----
原因は別にありました。原因はわかりませんでしたが、srcを変えたらできました。
たぶんですがsrcファイルの中に基本的な@EventHandler?などしか
かいておらず具体的な~~を追加することをかいてなかったのが原因
なのかな?と思います。
違ったら教えてください!

 原因
解決しているようですが参考までに。
通常@EventHandlerメソッドに何も書いていない状態でも起動はします。フィールド絡みでエラーが出ているということは、アクセスレベルをprotected以下にしたか、FMLのアノテーションを不正使用したか、おそらく後者ではないかと。ソース見てないので分かりませんが。。

エリーゼさんありがとうございます!

Eclipseで1.7.10のMod製作をしていて、まだ始めたてでわからないことが多いのですがご教授願いたいです。

version:forge-1.7.10-10.13.3.1395-1710

ModdingWikiを見てforgeを導入し、forgeだけで起動はできるのですが
「実行の構成」→「クラスパス」→「プロジェクトの追加」で作っているModをいれて起動すると
以下のコードがでてクラッシュします。

[01:11:39] [main/INFO] [GradleStart]: username: Jump131
[01:11:39] [main/INFO] [GradleStart]: Extra: []
[01:11:40] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/name/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --username, Jump131, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[01:11:40] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[01:11:40] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[01:11:40] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[01:11:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[01:11:40] [main/INFO] [FML]: Forge Mod Loader version 7.10.130.1395 for Minecraft 1.7.10 loading
[01:11:40] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_40, running on Windows 8.1:amd64:6.3, installed at C:\Modding\pleiades\java\8\jre
[01:11:40] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[01:11:40] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[01:11:40] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
[01:11:40] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[01:11:40] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[01:11:40] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[01:11:40] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[01:11:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[01:11:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[01:11:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[01:11:41] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[01:11:48] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[01:11:48] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[01:11:48] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[01:11:49] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[01:11:49] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[01:11:49] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[01:11:49] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[01:11:50] [main/INFO]: Setting user: Jump131
[01:11:53] [Client thread/INFO]: LWJGL Version: 2.9.1
[01:11:54] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:100]: ---- Minecraft Crash Report ----
// I blame Dinnerbone.

Time: 15/04/30 1:11
Description: Loading screen debug info

java.lang.Throwable
at cpw.mods.fml.client.SplashProgress.start(SplashProgress.java:99)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:190)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
at net.minecraft.client.Minecraft.run(Minecraft.java:942)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_40, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 1821428920 bytes (1737 MB) / 2112618496 bytes (2014 MB) up to 2112618496 bytes (2014 MB)
JVM Flags: 3 total; -Xincgc -Xmx2048M -Xms2048M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML:
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.2.12422 Compatibility Profile Context 13.152.0.0' Renderer: 'AMD Radeon HD 8570 Graphics'
[01:11:54] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[01:11:54] [Client thread/INFO] [FML]: MinecraftForge v10.13.3.1395 Initialized
[01:11:54] [Thread-6/INFO] [FML]: loc: minecraft:textures/font/ascii.png, i: 0, j: 0, size: 128, width: 128, height: 128
[01:11:54] [Client thread/INFO] [FML]: Replaced 183 ore recipies
[01:11:54] [Thread-6/INFO] [FML]: loc: minecraft:textures/gui/title/mojang.png, i: 0, j: 0, size: 256, width: 256, height: 256
[01:11:54] [Client thread/INFO] [FML]: Preloading CrashReport classes
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.World$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.World$2
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.World$3
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.World$4
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.chunk.Chunk$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.crash.CrashReportCategory$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.crash.CrashReportCategory$2
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.crash.CrashReportCategory$3
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.entity.Entity$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.entity.Entity$2
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.entity.EntityTracker$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.gen.layer.GenLayer$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.gen.layer.GenLayer$2
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.entity.player.InventoryPlayer$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.gen.structure.MapGenStructure$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.gen.structure.MapGenStructure$2
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.gen.structure.MapGenStructure$3
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.server.MinecraftServer$3
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.server.MinecraftServer$4
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.server.MinecraftServer$5
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.nbt.NBTTagCompound$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.nbt.NBTTagCompound$2
[01:11:54] [Thread-6/INFO] [FML]: loc: fml:textures/gui/forge.png, i: 0, j: 0, size: 128, width: 128, height: 128
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.network.NetHandlerPlayServer$2
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.network.NetworkSystem$3
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.tileentity.TileEntity$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.tileentity.TileEntity$2
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.tileentity.TileEntity$3
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$2
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$3
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$4
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$5
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$6
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$7
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$8
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$9
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$3
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$4
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$5
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$6
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$7
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$8
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$9
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$10
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$11
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$12
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$13
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$14
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$15
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.multiplayer.WorldClient$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.multiplayer.WorldClient$2
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.multiplayer.WorldClient$3
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.multiplayer.WorldClient$4
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.particle,EffectRenderer$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.particle,EffectRenderer$2
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.particle,EffectRenderer$3
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.particle,EffectRenderer$4
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.EntityRenderer$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.EntityRenderer$2
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.EntityRenderer$3
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.server.integrated.IntegratedServer$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.server.integrated.IntegratedServer$2
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.RenderGlobal$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.entity.RenderItem$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.entity.RenderItem$2
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.entity.RenderItem$3
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.entity.RenderItem$4
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.texture.TextureAtlasSprite$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.texture.TextureManager$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.texture.TextureMap$1
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.texture.TextureMap$2
[01:11:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.texture.TextureMap$3
[01:11:54] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[01:11:55] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[01:11:55] [Client thread/INFO] [FML]: Searching C:\Modding\work\forge-1.7.10-10.13.3.1395-1710ls-src\mods for mods
[01:11:57] [Client thread/INFO] [JumFiMod]: Mod JumFiMod is missing the required element 'name'. Substituting JumFiMod
[01:11:57] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[01:11:58] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, JumFiMod] at CLIENT
[01:11:58] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, JumFiMod] at SERVER
[01:11:58] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue
[01:11:58] [Client thread/ERROR] [FML]:
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML{7.10.130.1395} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.3.1395-1710ls.jar) Unloaded->Constructed
Forge{10.13.3.1395} [Minecraft Forge] (forgeSrc-1.7.10-10.13.3.1395-1710ls.jar) Unloaded->Constructed
JumFiMod{1.0.0} [JumFiMod] (bin) Unloaded->Errored
[01:11:58] [Client thread/ERROR] [FML]: The following problems were captured during this phase
[01:11:58] [Client thread/ERROR] [FML]: Caught exception from JumFiMod
java.lang.IllegalAccessException: Can not set static final java.lang.String field jumfimod.JumFiMod.MODID to jumfimod.JumFiMod
at sun.reflect.UnsafeFieldAccessorImpl.throwFinalFieldIllegalAccessException(UnsafeFieldAccessorImpl.java:76) ~[?:1.8.0_40]
at sun.reflect.UnsafeFieldAccessorImpl.throwFinalFieldIllegalAccessException(UnsafeFieldAccessorImpl.java:80) ~[?:1.8.0_40]
at sun.reflect.UnsafeQualifiedStaticObjectFieldAccessorImpl.set(UnsafeQualifiedStaticObjectFieldAccessorImpl.java:77) ~[?:1.8.0_40]
at java.lang.reflect.Field.set(Field.java:764) ~[?:1.8.0_40]
at cpw.mods.fml.common.FMLModContainer.parseSimpleFieldAnnotation(FMLModContainer.java:427) ~[forgeSrc-1.7.10-10.13.3.1395-1710ls.jar:?]
at cpw.mods.fml.common.FMLModContainer.processFieldAnnotations(FMLModContainer.java:358) ~[forgeSrc-1.7.10-10.13.3.1395-1710ls.jar:?]
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:513) ~[forgeSrc-1.7.10-10.13.3.1395-1710ls.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_40]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_40]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_40]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_40]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) ~[forgeSrc-1.7.10-10.13.3.1395-1710ls.jar:?]
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[forgeSrc-1.7.10-10.13.3.1395-1710ls.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_40]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_40]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_40]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_40]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?]
at cpw.mods.fml.common.Loader.loadMods(Loader.java:511) [Loader.class:?]
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:218) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_40]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_40]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_40]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_40]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
[01:11:58] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----
// Who set us up the TNT?

Time: 15/04/30 1:11
Description: There was a severe problem during mod loading that has caused the game to fail

cpw.mods.fml.common.LoaderException: java.lang.IllegalAccessException: Can not set static final java.lang.String field jumfimod.JumFiMod.MODID to jumfimod.JumFiMod
at cpw.mods.fml.common.LoadController.transition(LoadController.java:163)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:522)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:218)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
at net.minecraft.client.Minecraft.run(Minecraft.java:942)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
Caused by: java.lang.IllegalAccessException: Can not set static final java.lang.String field jumfimod.JumFiMod.MODID to jumfimod.JumFiMod
at sun.reflect.UnsafeFieldAccessorImpl.throwFinalFieldIllegalAccessException(UnsafeFieldAccessorImpl.java:76)
at sun.reflect.UnsafeFieldAccessorImpl.throwFinalFieldIllegalAccessException(UnsafeFieldAccessorImpl.java:80)
at sun.reflect.UnsafeQualifiedStaticObjectFieldAccessorImpl.set(UnsafeQualifiedStaticObjectFieldAccessorImpl.java:77)
at java.lang.reflect.Field.set(Field.java:764)
at cpw.mods.fml.common.FMLModContainer.parseSimpleFieldAnnotation(FMLModContainer.java:427)
at cpw.mods.fml.common.FMLModContainer.processFieldAnnotations(FMLModContainer.java:358)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:513)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)
... 12 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_40, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 1835003616 bytes (1749 MB) / 2112618496 bytes (2014 MB) up to 2112618496 bytes (2014 MB)
JVM Flags: 3 total; -Xincgc -Xmx2048M -Xms2048M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.130.1395 Minecraft Forge 10.13.3.1395 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML{7.10.130.1395} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.3.1395-1710ls.jar) Unloaded->Constructed
Forge{10.13.3.1395} [Minecraft Forge] (forgeSrc-1.7.10-10.13.3.1395-1710ls.jar) Unloaded->Constructed
JumFiMod{1.0.0} [JumFiMod] (bin) Unloaded->Errored
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.2.12422 Compatibility Profile Context 13.152.0.0' Renderer: 'AMD Radeon HD 8570 Graphics'
[01:11:58] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Modding\work\forge-1.7.10-10.13.3.1395-1710ls-src\.\crash-reports\crash-2015-04-30_01.11.58-client.txt
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

Eclipseは日本語化されたversionは4.4で作ってるModはJumFiModという名前でやってます。
他に書かないといけない事柄がありましたら言ってください。
お願いします。
最後に編集したユーザー じゃmp★ [ 2015年5月02日(土) 06:30 ], 累計 2 回
ModPlugin製作ができるようになりたいです。

Youtube:https://www.youtube.com/channel/UCMW2w7HNO6OiIpgScWBGuGA

Splatoonの3Dテクスチャも作ってます!
Jumtoon:http://forum.minecraftuser.jp/viewtopic.php?f=14&t=27427
アバター
じゃmp★
ID:4aeeb948
木を殴ってる
 
記事: 18
登録日時: 2014年12月07日(日) 18:18

  • (PostNo.229677)

Re: Eclipseで1.7.10の自分で作るModを起動しようとするとエラーが出る

投稿記事by じゃmp★ » 2015年4月30日(木) 02:28

自己解決しました。
何が原因かはわかりませんが、解決した際の方法は上のやつに編集して載せておきます。
ModPlugin製作ができるようになりたいです。

Youtube:https://www.youtube.com/channel/UCMW2w7HNO6OiIpgScWBGuGA

Splatoonの3Dテクスチャも作ってます!
Jumtoon:http://forum.minecraftuser.jp/viewtopic.php?f=14&t=27427
アバター
じゃmp★
ID:4aeeb948
木を殴ってる
 
記事: 18
登録日時: 2014年12月07日(日) 18:18

  • (PostNo.229687)

Re: 【解決済み】Eclipseで1.7.10の自分で作るModを起動しようとするとエラーが出る

投稿記事by elise_blacklab » 2015年4月30日(木) 08:03

原因はわかりませんでしたが、srcを変えたらできました。
たぶんですがsrcファイルの中に基本的な@EventHandler?などしか
かいておらず具体的な~~を追加することをかいてなかったのが原因
なのかな?と思います。

解決しているようですが参考までに。
通常@EventHandlerメソッドに何も書いていない状態でも起動はします。フィールド絡みでエラーが出ているということは、アクセスレベルをprotected以下にしたか、FMLのアノテーションを不正使用したか、おそらく後者ではないかと。ソース見てないので分かりませんが。。
メイドつくってたりします.http://6docvc.net/
アバター
elise_blacklab
ID:7bcf2efc
掘り廃人
 
記事: 2456
登録日時: 2014年6月25日(水) 18:30

  • (PostNo.229892)

Re: 【解決済み】Eclipseで1.7.10の自分で作るModを起動しようとするとエラーが出る

投稿記事by じゃmp★ » 2015年5月02日(土) 06:23

elise_blacklab さんが書きました:
原因はわかりませんでしたが、srcを変えたらできました。
たぶんですがsrcファイルの中に基本的な@EventHandler?などしか
かいておらず具体的な~~を追加することをかいてなかったのが原因
なのかな?と思います。

解決しているようですが参考までに。
通常@EventHandlerメソッドに何も書いていない状態でも起動はします。フィールド絡みでエラーが出ているということは、アクセスレベルをprotected以下にしたか、FMLのアノテーションを不正使用したか、おそらく後者ではないかと。ソース見てないので分かりませんが。。


ほうほう...
やっぱりいろいろと理解できてない状態では難しいのですね...
調べてみます!
ありがとうございます!
ModPlugin製作ができるようになりたいです。

Youtube:https://www.youtube.com/channel/UCMW2w7HNO6OiIpgScWBGuGA

Splatoonの3Dテクスチャも作ってます!
Jumtoon:http://forum.minecraftuser.jp/viewtopic.php?f=14&t=27427
アバター
じゃmp★
ID:4aeeb948
木を殴ってる
 
記事: 18
登録日時: 2014年12月07日(日) 18:18


Return to 質問:開発・制作関連

x