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

Exception in thread "Thread-2" java.lang.NoSuchMethodError: #56

Closed
andel27 opened this issue Jul 11, 2018 · 2 comments
Closed

Exception in thread "Thread-2" java.lang.NoSuchMethodError: #56

andel27 opened this issue Jul 11, 2018 · 2 comments

Comments

@andel27
Copy link

andel27 commented Jul 11, 2018

I use a mac and have downloaded the files accordingly. Starting through ModTheSpire.jar works fine and the game loads with no mods selected, but when I try to start with any mods selected this error comes up no matter which mod I choose. Anyone have the solution? (note: I am using the most updated version of slay the spire and of all the mods as well as ModTheSpire.jar)

Exception in thread "Thread-2" java.lang.NoSuchMethodError: sun.reflect.ReflectionFactory.newConstructorAccessor(Ljava/lang/reflect/Constructor;)Lsun/reflect/ConstructorAccessor;
at com.evacipated.cardcrawl.modthespire.EnumBusterReflect.findConstructorAccessor(EnumBusterReflect.java:211)
at com.evacipated.cardcrawl.modthespire.EnumBusterReflect.make(EnumBusterReflect.java:70)
at com.evacipated.cardcrawl.modthespire.EnumBusterReflect.make(EnumBusterReflect.java:49)
at com.evacipated.cardcrawl.modthespire.Patcher.patchEnums(Patcher.java:125)
at com.evacipated.cardcrawl.modthespire.Loader.runMods(Loader.java:237)
at com.evacipated.cardcrawl.modthespire.ui.ModSelectWindow.lambda$null$1(ModSelectWindow.java:199)
at java.base/java.lang.Thread.run(Unknown Source)

@kiooeht
Copy link
Owner

kiooeht commented Jul 11, 2018

I believe you're launching ModTheSpire.jar with Java 9. ModTheSpire does not support Java 9 and needs to be run with Java 8. Slay the Spire comes with Java 8 and ModTheSpire comes with a small script (MTS.sh) that runs ModTheSpire using the Java that Slay the Spire ships with.

@andel27
Copy link
Author

andel27 commented Jul 13, 2018

Ah, I was using Java 10 but uninstalling Java 10 and installing 8 worked, thank you!

@kiooeht kiooeht closed this as completed Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants