1. Explore
  2. »
  3. Java Runtime
  4. »
  5. java.lang
  6. »
  7. ClassLoader

java.langClassLoader errorsJava Runtime

Top patterns

  1. ClassLoader.loadClass() has thrown a ClassNotFoundException

    A few things cause this exception:
    1) Check if you have all jars and if they're in the correct path.
    2) Your classpath might be broken, you can define it in the command line with java -cp yourClassPath or at your IDE if you're using one.

    Check the source of this solution for more info

  2. Failed to load the class from current classpath

    Check the name of the class not found in the message, and stop in a breakpoint in the loadClass() method. When it is stopped, check the current classpath and find the missing dependency.

  3. Failed to load the class from current classpath

    Check the name of the class not found in the message, and stop in a breakpoint in the loadClass() method. When it is stopped, check the current classpath and find the missing dependency.

Error patternsMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
3 frames hidden
java.lang.ClassLoader.loadClass
4592Web pages
1Solution
ClassNotFoundExceptionClassLoader.loadClass()4592

Failed to load the class from current classpath

java.lang.ClassNotFoundException
5 frames hidden
java.lang.ClassLoader.loadClass
4263Web pages
1Solution
ClassNotFoundExceptionClassLoader.loadClass()4263

Failed to load the class from current classpath

java.lang.ClassNotFoundException
6 frames hidden
java.lang.ClassLoader.loadClass
4075Web pages
1Solution
ClassNotFoundExceptionClassLoader.loadClass()4075

Class version incompatible with current JRE version

java.lang.UnsupportedClassVersionError
java.lang.ClassLoader.defineClass1
3075Web pages
UnsupportedClassVersionErrorClassLoader.defineClass1()3075

Unable to find library file in java library path

java.lang.UnsatisfiedLinkError
java.lang.ClassLoader.loadLibrary
2332Web pages
UnsatisfiedLinkErrorClassLoader.loadLibrary()2332

Incompatible dependency version or class not found in classpath

java.lang.NoClassDefFoundError
java.lang.ClassLoader.defineClass1
2309Web pages
1Solution
NoClassDefFoundErrorClassLoader.defineClass1()2309

ClassLoader.defineClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
1 frames hidden
java.lang.ClassLoader.defineClass
1967Web pages
1Solution
UnsupportedClassVersionErrorClassLoader.defineClass()1967

Unable to locate class in the dependent libraries or classpath

java.lang.ClassNotFoundException
2 frames hidden
java.lang.ClassLoader.loadClass
1961Web pages
1Solution
ClassNotFoundExceptionClassLoader.loadClass()1961

ClassLoader.loadLibrary0() has thrown an UnsatisfiedLinkError

java.lang.UnsatisfiedLinkError
1 frames hidden
java.lang.ClassLoader.loadLibrary0
1880Web pages
UnsatisfiedLinkErrorClassLoader.loadLibrary0()1880

ClassLoader.loadLibrary() has thrown an UnsatisfiedLinkError

java.lang.UnsatisfiedLinkError
2 frames hidden
java.lang.ClassLoader.loadLibrary
1864Web pages
UnsatisfiedLinkErrorClassLoader.loadLibrary()1864

ClassLoader.defineClass() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
1 frames hidden
java.lang.ClassLoader.defineClass
1757Web pages
NoClassDefFoundErrorClassLoader.defineClass()1757

ClassLoader.loadClassInternal() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
6 frames hidden
java.lang.ClassLoader.loadClassInternal
1726Web pages
ClassNotFoundExceptionClassLoader.loadClassInternal()1726

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
2 frames hidden
java.lang.ClassLoader.loadClass
1370Web pages
1Solution
ClassNotFoundExceptionClassLoader.loadClass()1370

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
4 frames hidden
java.lang.ClassLoader.loadClass
1310Web pages
ClassNotFoundExceptionClassLoader.loadClass()1310

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
5 frames hidden
java.lang.ClassLoader.loadClass
1289Web pages
ClassNotFoundExceptionClassLoader.loadClass()1289

ClassLoader.defineClass() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
1 frames hidden
java.lang.ClassLoader.defineClass
1184Web pages
NoClassDefFoundErrorClassLoader.defineClass()1184

ClassLoader.defineClassCond() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
1 frames hidden
java.lang.ClassLoader.defineClassCond
1070Web pages
UnsupportedClassVersionErrorClassLoader.defineClassCond()1070

ClassLoader.defineClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
2 frames hidden
java.lang.ClassLoader.defineClass
1064Web pages
UnsupportedClassVersionErrorClassLoader.defineClass()1064

Trying to run application as standalone instead of inside a container or application server

java.lang.ClassFormatError
java.lang.ClassLoader.defineClass1
883Web pages
ClassFormatErrorClassLoader.defineClass1()883

ClassLoader.loadClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
9 frames hidden
java.lang.ClassLoader.loadClass
776Web pages
UnsupportedClassVersionErrorClassLoader.loadClass()776

Conflict between library/dependency versions

java.lang.IncompatibleClassChangeError
java.lang.ClassLoader.defineClass1
690Web pages
IncompatibleClassChangeErrorClassLoader.defineClass1()690

ClassLoader.loadClass() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
8 frames hidden
java.lang.ClassLoader.loadClass
664Web pages
NoClassDefFoundErrorClassLoader.loadClass()664

Class version not compatible with JRE

java.lang.UnsupportedClassVersionError
java.lang.ClassLoader.defineClass0
662Web pages
UnsupportedClassVersionErrorClassLoader.defineClass0()662

ClassLoader.defineClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
1 frames hidden
java.lang.ClassLoader.defineClass
646Web pages
UnsupportedClassVersionErrorClassLoader.defineClass()646

ClassLoader.defineClass() has thrown a ClassFormatError

java.lang.ClassFormatError
1 frames hidden
java.lang.ClassLoader.defineClass
635Web pages
ClassFormatErrorClassLoader.defineClass()635

ClassLoader.loadClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
11 frames hidden
java.lang.ClassLoader.loadClass
633Web pages
UnsupportedClassVersionErrorClassLoader.loadClass()633

ClassLoader.loadClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
9 frames hidden
java.lang.ClassLoader.loadClass
600Web pages
UnsupportedClassVersionErrorClassLoader.loadClass()600

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
4 frames hidden
java.lang.ClassLoader.loadClass
591Web pages
ClassNotFoundExceptionClassLoader.loadClass()591

ClassLoader.loadClass() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
10 frames hidden
java.lang.ClassLoader.loadClass
588Web pages
NoClassDefFoundErrorClassLoader.loadClass()588

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
1 frames hidden
java.lang.ClassLoader.loadClass
566Web pages
ClassNotFoundExceptionClassLoader.loadClass()566

ClassLoader.loadClassInternal() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
11 frames hidden
java.lang.ClassLoader.loadClassInternal
534Web pages
NoClassDefFoundErrorClassLoader.loadClassInternal()534

ClassLoader.defineClass() has thrown an IncompatibleClassChangeError

java.lang.IncompatibleClassChangeError
1 frames hidden
java.lang.ClassLoader.defineClass
532Web pages
IncompatibleClassChangeErrorClassLoader.defineClass()532

ClassLoader.loadClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
11 frames hidden
java.lang.ClassLoader.loadClass
516Web pages
UnsupportedClassVersionErrorClassLoader.loadClass()516

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
1 frames hidden
java.lang.ClassLoader.loadClass
513Web pages
ClassNotFoundExceptionClassLoader.loadClass()513

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
2 frames hidden
java.lang.ClassLoader.loadClass
511Web pages
1Solution
ClassNotFoundExceptionClassLoader.loadClass()511

ClassLoader.defineClass1() has thrown a VerifyError

java.lang.VerifyError
java.lang.ClassLoader.defineClass1
478Web pages
VerifyErrorClassLoader.defineClass1()478

ClassLoader.loadClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
8 frames hidden
java.lang.ClassLoader.loadClass
455Web pages
UnsupportedClassVersionErrorClassLoader.loadClass()455

ClassLoader.loadClassInternal() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
2 frames hidden
java.lang.ClassLoader.loadClassInternal
419Web pages
ClassNotFoundExceptionClassLoader.loadClassInternal()419

ClassLoader.loadClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
10 frames hidden
java.lang.ClassLoader.loadClass
417Web pages
UnsupportedClassVersionErrorClassLoader.loadClass()417

ClassLoader.loadClassInternal() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
11 frames hidden
java.lang.ClassLoader.loadClassInternal
401Web pages
UnsupportedClassVersionErrorClassLoader.loadClassInternal()401

ClassLoader.defineClass1() has thrown a LinkageError

java.lang.LinkageError
java.lang.ClassLoader.defineClass1
377Web pages
LinkageErrorClassLoader.defineClass1()377

ClassLoader.loadClass() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
9 frames hidden
java.lang.ClassLoader.loadClass
376Web pages
NoClassDefFoundErrorClassLoader.loadClass()376

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.NullPointerException
3 frames hidden
java.lang.ClassLoader.loadClass
374Web pages
ClassNotFoundExceptionClassLoader.loadClass()374

ClassLoader.defineClass() has thrown a VerifyError

java.lang.VerifyError
1 frames hidden
java.lang.ClassLoader.defineClass
371Web pages
VerifyErrorClassLoader.defineClass()371

ClassLoader.loadClassInternal() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
5 frames hidden
java.lang.ClassLoader.loadClassInternal
366Web pages
ClassNotFoundExceptionClassLoader.loadClassInternal()366

ClassLoader.checkCerts() has thrown a SecurityException

java.lang.SecurityException
java.lang.ClassLoader.checkCerts
356Web pages
SecurityExceptionClassLoader.checkCerts()356

ClassLoader.defineClass1() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
java.lang.ClassLoader.defineClass1
356Web pages
OutOfMemoryErrorClassLoader.defineClass1()356

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
4 frames hidden
java.lang.ClassLoader.loadClass
346Web pages
ClassNotFoundExceptionClassLoader.loadClass()346

ClassLoader.loadClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
8 frames hidden
java.lang.ClassLoader.loadClass
346Web pages
UnsupportedClassVersionErrorClassLoader.loadClass()346

ClassLoader.defineClass1() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
3 frames hidden
java.lang.ClassLoader.defineClass1
330Web pages
NoClassDefFoundErrorClassLoader.defineClass1()330
Nothing to list here.
Nothing to list here.