Hey, im speak portuguese (br)
Sorry for this english:
I’m trying to do something like the Video gabizou: Debugging and HotSwapping - YouTube
But when I try to run always gives an error …
I tried in various ways, and never works, always giving different errors
If anyone can help me:
[spoiler=“Error”]
"C:\Program Files\Java\jre1.8.0_60\bin\java" -Dfml.coreMods.load=org.spongepowered.mod.SpongeCoremod -Didea.launcher.port=7537 "-Didea.launcher.bin.path=D:\Programas\IntelliJ IDEA Community Edition 14.1.4\bin" -classpath "D:\Programas\IntelliJ IDEA Community Edition 14.1.4\lib\idea_rt.jar;D:\Programas\IntelliJ IDEA Community Edition 14.1.4\lib\util.jar" -Dfile.encoding=UTF-8 com.intellij.rt.execution.CommandLineWrapper C:\Users\willianmaysoares\AppData\Local\Temp\classpath0.tmp com.intellij.rt.execution.application.AppMain GradleStartServer
[14:33:44] [main/INFO] [GradleStart]: Extra: []
[14:33:44] [main/INFO] [GradleStart]: Running with arguments: []
Exception in thread “main” java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:130)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStartServer.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
… 5 more
Caused by: java.lang.ClassCastException: java.net.URLClassLoader cannot be cast to net.minecraft.launchwrapper.LaunchClassLoader
at net.minecraftforge.fml.common.ModClassLoader.(ModClassLoader.java:48)
at net.minecraftforge.fml.common.Loader.(Loader.java:191)
at net.minecraftforge.fml.common.Loader.instance(Loader.java:170)
at net.minecraftforge.fml.common.registry.GameData.addPrefix(GameData.java:899)
at net.minecraftforge.fml.common.registry.GameData.register(GameData.java:722)
at net.minecraftforge.fml.common.registry.FMLControlledNamespacedRegistry.register(FMLControlledNamespacedRegistry.java:137)
at net.minecraft.block.Block.registerBlock(Block.java:2551)
at net.minecraft.block.Block.registerBlocks(Block.java:2292)
at net.minecraft.init.Bootstrap.register(Bootstrap.java:643)
at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1597)
… 16 more
Process finished with exit code 1
[/spoiler]
I followed the steps of: GitHub - SpongePowered/Sponge: The SpongeAPI implementation targeting vanilla Minecraft and 3rd party platforms.
but was making a mistake, then I ran the “idea gradle”
and IntelliJ I ran the “buildDependents” to resolve a minecraft lib
Can someone help me?