Posted December 13, 201411 yr I am currently trying to update my mods "Player API" and "Render Player API" and ran into a strange problem when loading the Constructors of the class "net.minecraft.client.entity.EntityPlayerSP" via reflection: Exception in thread "main" java.lang.ClassFormatError: Illegal class name "java.io.IOException" in class file net/minecraft/client/gui/GuiScreen at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructors(Unknown Source) at main.Data.generateTable(Data.java:140) at main.Process.process(Process.java:165) at main.Main.main(Main.java:97) Environment: JRE: jre7 classpath: forgeBin-1.8-11.14.0.1268-1.8.jar;authlib-1.5.17.jar I have allready investigated the problem using a java decompiler (jd-gui-0.3.6) forgeBin-1.8-11.14.0.1268-1.8.jar/net/minecraft/client/gui/GuiScreen.class: (strange throws declarations everywhere) ... protected void keyTyped(char typedChar, int keyCode) throws java.io.IOException, IOException // <= what is this supposed to be ?!? { ; ; ; if (keyCode == 1) { this.mc.displayGuiScreen((GuiScreen)null); if (this.mc.currentScreen == null) { this.mc.setIngameFocus(); } } } ... 1.8.jar/bxf.class: (no throws declarations at all) ... protected void a(char paramChar, int paramInt) { if (paramInt == 1) { this.j.a(null); if (this.j.m == null) { this.j.n(); } } } ... forgeBin-1.7.10-10.13.0.1152.jar/net/minecraft/client/gui/GuiScreen.class: (also no throws declarations at all) ... protected void keyTyped(char p_73869_1_, int p_73869_2_) { ; ; ; if (p_73869_2_ == 1) { this.mc.displayGuiScreen((GuiScreen)null); this.mc.setIngameFocus(); } } ... Any suggestions how to successfully load the GuiScreen class?
December 13, 201411 yr Author Oddly enough something very similar happens when I start the client in the eclipse workspace generated using forge-1.8-11.14.0.1268-1.8-src.zip (see: Can't starting game in eclipse [Forge 1.8 latest version])
December 15, 201411 yr Author Solved by the fix for another problem. (see: Can't starting game in eclipse [Forge 1.8 latest version])
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.