Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CFR unable to load classes #396

Closed
jredfox opened this issue Feb 26, 2022 · 0 comments · Fixed by #401
Closed

CFR unable to load classes #396

jredfox opened this issue Feb 26, 2022 · 0 comments · Fixed by #401

Comments

@jredfox
Copy link

jredfox commented Feb 26, 2022

it says unable to load classes with my minecraft mod deobed.

steps to reproduce:

  • use this jar in bytecode viewer cwc-b15-deob.jar.zip
  • deob minecraft.jar using recaf with this mapping joined.deob.srg
  • set the minecraft deob jar you just got and the forge deob jar forge-deob.jar.zip into a libs folder
  • set bytecode viewer libs folder to the folder you just created
  • decompile with cfr
  • output of source still says failed to load classes

what I had to do as a work around:

  • manual add the library minecraft.jar first then forge.jar next into a new jar. place my mod after the libs were done and then decompile that. I don't think this is the behavior you intend for using bytecode viewer to get good decompiled jars
  • after decompiling pull apart what classes needed to be decompiled and discard the rest

could probably also be reproduced with just a jar with class A that uses class B which doesn't exist because there is no way to tell bytecode viewer where your libs files are

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants