Exception in thread "main" java.lang.NoClassDefFoundError: org/yaml/snakeyaml/DumperOptions
at net.eltown.apiserver.components.config.Config.parseContent(Config.java:616)
at net.eltown.apiserver.components.config.Config.load(Config.java:196)
at net.eltown.apiserver.components.config.Config.<init>(Config.java:73)
at net.eltown.apiserver.components.config.Config.<init>(Config.java:55)
at net.eltown.apiserver.Server.start(Server.java:62)
at net.eltown.apiserver.Loader.main(Loader.java:13)
Caused by: java.lang.ClassNotFoundException: org.yaml.snakeyaml.DumperOptions
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 6 more
#Exception in thread "main" java.lang.NoClassDefFoundError: org/yaml/snakeyaml/DumperOptions
88 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @long crown! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
idk what i should do
Failed to create shaded artifact, project main artifact does not exist.
idl
idk*
the error only comes with the .jar
in inteliji its works perfekt
@lost parcel
do you have the scope of snakeyaml set to compile or leave it empty?
Wdym?
you have dependency blocks in your pom.xml
Ya
to include that dependency, you need to set scope to compile
ah if it only works on ij, you need the maven shade plugin
How I became them?
then just do mvn package and the jar should work
uh lol
What is wrong
For?
.
.
which java version?
3.6.3
can you try updated maven looks like this version has some issues with java 17
How?
according to this https://stackoverflow.com/a/71199477
are you running maven from Intellij or terminal?
are you building jar from intellij?
with maven ya
grab maven from herehttps://maven.apache.org/download.cgi
and then point intellij to new location
how?
ok and than?
mvn package
check maven version
bruh in intellij there should be maven menu in top right do you see it?
expand lifecycle
select package and hit green play button thingy
done
now check jar in target folder
ok