Jump to content

[1.8][SOLVED] ClassFormatError when loading class "GuiScreen"


Recommended Posts

Posted

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?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.