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)

 

  Reveal hidden contents

 

1.8.jar/bxf.class: (no throws declarations at all)

 

  Reveal hidden contents

 

forgeBin-1.7.10-10.13.0.1152.jar/net/minecraft/client/gui/GuiScreen.class: (also no throws declarations at all)

 

  Reveal hidden contents

 

 

 

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.