Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.