CrucibleMC / Crucible

Crucible, a fork of Thermos, is a CraftBukkit and Forge server implementation for 1.7.10, providing the ability to load both Forge mods and Bukkit plugins alongside each other.
https://discord.gg/jWSTJ4d
GNU General Public License v3.0
184 stars 63 forks source link

An error:NoClassDefFoundError: joptsimple/OptionSpec #109

Closed PonderFox0643 closed 2 years ago

PonderFox0643 commented 2 years ago

I've put libraries in the server's working directory. Console output: Exception in thread "main" java.lang.NoClassDefFoundError: joptsimple/OptionSpec at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at cpw.mods.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:28) at cpw.mods.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:15) Caused by: java.lang.ClassNotFoundException: joptsimple.OptionSpec at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 4 more

What should I do.

RehabCZ commented 2 years ago

Your root server folder should look like sth like this

📁 libraries <-- libraries inside this folder
☕ server.jar <-- actual Crucible jar file

Note that libraries cannot be in another subfolder (except those packages)

PonderFox0643 commented 2 years ago

I've put libraries in the server's working directory. Error still exists Exception in thread "main" java.lang.NoClassDefFoundError: joptsimple/OptionSpec at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at cpw.mods.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:28) at cpw.mods.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:15) Caused by: java.lang.ClassNotFoundException: joptsimple.OptionSpec at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 4 more

RehabCZ commented 2 years ago

Without proper informations this exception log is useless. Please provide additional info like:

Mby somebody from Crucible staff team may extend this list of requirements in order to properly determine the issue.

PonderFox0643 commented 2 years ago

java version "1.8.0_291 捕获 "

RehabCZ commented 2 years ago

I'm not much a Windows guy but that looks all good to me. Would you provide a screenshot of libraries directory ?

PonderFox0643 commented 2 years ago

捕获 The forge library version is 1614

RehabCZ commented 2 years ago

Looks good to me.

Mby try download and replace libraries and server jar with new ones.

RyanPereiraS commented 2 years ago

did you use the Jar provided or build from code? If you built it yourself, try using the one available on the releases page.

PonderFox0643 commented 2 years ago

I want to give up it......