#java.lang.NoClassDefFoundError

26 messages · Page 1 of 1 (latest)

uneven aspen
onyx horizonBOT
#

This post has been reserved for your question.

Hey @uneven aspen! Please use /close or the Close Post button 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.

brave fractal
uneven aspen
brave fractal
#

i need the hierarchy of the .class files and the pom

uneven aspen
#

do you mean when it is packaged into the jar?

brave fractal
#

yeah that and the hierarchy of the classes folder

uneven aspen
#

here is the hierarchy of the classes folder

brave fractal
#

wait why is it not capitalised

uneven aspen
#

because i changed it at a later point to see if that fixed it

#

but here is the hierarchy of the jar file

uneven aspen
brave fractal
#

not really, the only thing I can think of is adding the folder explicitly to the classpath.

uneven aspen
#

wdym?

brave fractal
#

share your pom

uneven aspen
uneven aspen
brave fractal
# uneven aspen do you have any idea?

configuring the classpath how I wanted to doesn't work as intended or I'm doing it wrong. You could try using a different plugin like the maven assembly plugin instead

uneven aspen
brave fractal
#

what is the hierachy of the newly created jar ?

uneven aspen
uneven aspen
#

but im going to sleep now, i hope i will be able to find the error tommorow

uneven aspen
#

actually nevermind, i have found the problem and managed to fix it, so far i know the problem is that the CreateTable function was trying get the connection to the database but for some reason when i checked if there was a connection using a function that also needed the connection to check if there is a connection but for some reason the function didnt let go of the connection or smth like that causing the CreateTable function to not being able to get the connection and in turn causing a deadlock.