Java Runtime errors

Core environment and runtime library

https://java.com
Solution coverage:
Summary coverage:

Top patterns

  1. 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.

  2. NumberFormatException.forInputString() has thrown a NumberFormatException

    Is thrown when you try to convert a String to a numeric value, like an int, float, double, long, etc.

  3. 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


DescriptionException TypeEntry MethodWeb pages

Failed to load the class from current classpath

java.lang.ClassNotFoundException
5 frames hidden
java.lang.ClassLoader.loadClass
4387Web pages
1Solution
ClassNotFoundExceptionClassLoader.loadClass4387

NumberFormatException.forInputString() has thrown a NumberFormatException

java.lang.NumberFormatException
java.lang.NumberFormatException.forInputString
4379Web pages
1Solution
NumberFormatExceptionNumberFormatException.forInputString4379

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
3 frames hidden
java.lang.ClassLoader.loadClass
4185Web pages
1Solution
ClassNotFoundExceptionClassLoader.loadClass4185

Failed to load the class from current classpath

java.lang.ClassNotFoundException
6 frames hidden
java.lang.ClassLoader.loadClass
4165Web pages
1Solution
ClassNotFoundExceptionClassLoader.loadClass4165

Integer.parseInt() has thrown a NumberFormatException

java.lang.NumberFormatException
1 frames hidden
java.lang.Integer.parseInt
3460Web pages
NumberFormatExceptionInteger.parseInt3460

SecurityManager.checkPermission() has thrown an AccessControlException

java.security.AccessControlException
2 frames hidden
java.lang.SecurityManager.checkPermission
3283Web pages
AccessControlExceptionSecurityManager.checkPermission3283

ClassLoader.defineClass1() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
java.lang.ClassLoader.defineClass1
3048Web pages
UnsupportedClassVersionErrorClassLoader.defineClass13048

Integer.parseInt() has thrown a NumberFormatException

java.lang.NumberFormatException
2 frames hidden
java.lang.Integer.parseInt
2672Web pages
1Solution
NumberFormatExceptionInteger.parseInt2672

String.substring() has thrown a StringIndexOutOfBoundsException

java.lang.StringIndexOutOfBoundsException
java.lang.String.substring
2406Web pages
1Solution
StringIndexOutOfBoundsExceptionString.substring2406

ClassLoader.defineClass1() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
java.lang.ClassLoader.defineClass1
2311Web pages
1Solution
NoClassDefFoundErrorClassLoader.defineClass12311

ClassLoader.loadLibrary() has thrown an UnsatisfiedLinkError

java.lang.UnsatisfiedLinkError
java.lang.ClassLoader.loadLibrary
2259Web pages
UnsatisfiedLinkErrorClassLoader.loadLibrary2259

ClassLoader$NativeLibrary.load() has thrown an UnsatisfiedLinkError

java.lang.UnsatisfiedLinkError
java.lang.ClassLoader$NativeLibrary.load
2121Web pages
1Solution
UnsatisfiedLinkErrorClassLoader$NativeLibrary.load2121

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
1 frames hidden
java.lang.ClassLoader.loadClass
2038Web pages
ClassNotFoundExceptionClassLoader.loadClass2038

Runtime.loadLibrary0() has thrown an UnsatisfiedLinkError

java.lang.UnsatisfiedLinkError
1 frames hidden
java.lang.Runtime.loadLibrary0
2029Web pages
UnsatisfiedLinkErrorRuntime.loadLibrary02029

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
2 frames hidden
java.lang.ClassLoader.loadClass
2023Web pages
1Solution
ClassNotFoundExceptionClassLoader.loadClass2023

System.loadLibrary() has thrown an UnsatisfiedLinkError

java.lang.UnsatisfiedLinkError
2 frames hidden
java.lang.System.loadLibrary
2014Web pages
UnsatisfiedLinkErrorSystem.loadLibrary2014

ClassLoader.defineClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
1 frames hidden
java.lang.ClassLoader.defineClass
1958Web pages
1Solution
UnsupportedClassVersionErrorClassLoader.defineClass1958

ClassLoader.defineClass() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
1 frames hidden
java.lang.ClassLoader.defineClass
1750Web pages
NoClassDefFoundErrorClassLoader.defineClass1750

ClassLoader.loadClassInternal() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
6 frames hidden
java.lang.ClassLoader.loadClassInternal
1748Web pages
ClassNotFoundExceptionClassLoader.loadClassInternal1748

ClassLoader.loadLibrary0() has thrown an UnsatisfiedLinkError

java.lang.UnsatisfiedLinkError
1 frames hidden
java.lang.ClassLoader.loadLibrary0
1748Web pages
UnsatisfiedLinkErrorClassLoader.loadLibrary01748

ClassLoader.loadLibrary() has thrown an UnsatisfiedLinkError

java.lang.UnsatisfiedLinkError
2 frames hidden
java.lang.ClassLoader.loadLibrary
1734Web pages
UnsatisfiedLinkErrorClassLoader.loadLibrary1734

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
4 frames hidden
java.lang.ClassLoader.loadClass
1439Web pages
ClassNotFoundExceptionClassLoader.loadClass1439

Runtime.loadLibrary() has thrown an UnsatisfiedLinkError

java.lang.UnsatisfiedLinkError
java.lang.Runtime.loadLibrary
1346Web pages
UnsatisfiedLinkErrorRuntime.loadLibrary1346

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
5 frames hidden
java.lang.ClassLoader.loadClass
1345Web pages
ClassNotFoundExceptionClassLoader.loadClass1345

System.loadLibrary() has thrown an UnsatisfiedLinkError

java.lang.UnsatisfiedLinkError
1 frames hidden
java.lang.System.loadLibrary
1308Web pages
1Solution
UnsatisfiedLinkErrorSystem.loadLibrary1308

String.charAt() has thrown a StringIndexOutOfBoundsException

java.lang.StringIndexOutOfBoundsException
java.lang.String.charAt
1306Web pages
1Solution
StringIndexOutOfBoundsExceptionString.charAt1306

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
2 frames hidden
java.lang.ClassLoader.loadClass
1269Web pages
1Solution
ClassNotFoundExceptionClassLoader.loadClass1269

ClassLoader.defineClass0() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
java.lang.ClassLoader.defineClass0
1252Web pages
NoClassDefFoundErrorClassLoader.defineClass01252

Class.forName0() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
java.lang.Class.forName0
1186Web pages
NoClassDefFoundErrorClass.forName01186

ClassLoader.defineClass() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
1 frames hidden
java.lang.ClassLoader.defineClass
1176Web pages
NoClassDefFoundErrorClassLoader.defineClass1176

Class.forName() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
1 frames hidden
java.lang.Class.forName
1136Web pages
1Solution
NoClassDefFoundErrorClass.forName1136

Class.forName0() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
7 frames hidden
java.lang.Class.forName0
1123Web pages
ClassNotFoundExceptionClass.forName01123

Class.forName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
8 frames hidden
java.lang.Class.forName
1119Web pages
ClassNotFoundExceptionClass.forName1119

ClassLoader.defineClassCond() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
1 frames hidden
java.lang.ClassLoader.defineClassCond
1057Web pages
UnsupportedClassVersionErrorClassLoader.defineClassCond1057

ClassLoader.defineClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
2 frames hidden
java.lang.ClassLoader.defineClass
1049Web pages
UnsupportedClassVersionErrorClassLoader.defineClass1049

Runtime.loadLibrary0() has thrown an UnsatisfiedLinkError

java.lang.UnsatisfiedLinkError
3 frames hidden
java.lang.Runtime.loadLibrary0
1039Web pages
UnsatisfiedLinkErrorRuntime.loadLibrary01039

System.loadLibrary() has thrown an UnsatisfiedLinkError

java.lang.UnsatisfiedLinkError
4 frames hidden
java.lang.System.loadLibrary
1031Web pages
UnsatisfiedLinkErrorSystem.loadLibrary1031

ProcessImpl.create() has thrown an IOException

java.io.IOException
java.lang.ProcessImpl.create
1013Web pages
IOExceptionProcessImpl.create1013

ProcessImpl.<init>() has thrown an IOException

java.io.IOException
1 frames hidden
java.lang.ProcessImpl.<init>
990Web pages
IOExceptionProcessImpl.<init>990

ProcessImpl.start() has thrown an IOException

java.io.IOException
2 frames hidden
java.lang.ProcessImpl.start
987Web pages
IOExceptionProcessImpl.start987

UNIXProcess.forkAndExec() has thrown an IOException

java.io.IOException
java.lang.UNIXProcess.forkAndExec
940Web pages
IOExceptionUNIXProcess.forkAndExec940

UNIXProcess.<init>() has thrown an IOException

java.io.IOException
1 frames hidden
java.lang.UNIXProcess.<init>
917Web pages
IOExceptionUNIXProcess.<init>917

Integer.parseInt() has thrown a NumberFormatException

java.lang.NumberFormatException
java.lang.Integer.parseInt
903Web pages
NumberFormatExceptionInteger.parseInt903

Class.getDeclaredConstructors0() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
java.lang.Class.getDeclaredConstructors0
891Web pages
NoClassDefFoundErrorClass.getDeclaredConstructors0891

ClassLoader.defineClass1() has thrown a ClassFormatError

java.lang.ClassFormatError
java.lang.ClassLoader.defineClass1
863Web pages
ClassFormatErrorClassLoader.defineClass1863

Class.privateGetDeclaredConstructors() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
1 frames hidden
java.lang.Class.privateGetDeclaredConstructors
838Web pages
NoClassDefFoundErrorClass.privateGetDeclaredConstructors838

Class.forName0() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
7 frames hidden
java.lang.Class.forName0
837Web pages
ClassNotFoundExceptionClass.forName0837

ProcessImpl.start() has thrown an IOException

java.io.IOException
2 frames hidden
java.lang.ProcessImpl.start
835Web pages
IOExceptionProcessImpl.start835

Failed to load a class specified by the class name as a string

java.lang.ClassNotFoundException
8 frames hidden
java.lang.Class.forName
832Web pages
1Solution
ClassNotFoundExceptionClass.forName832

ProcessBuilder.start() has thrown an IOException

java.io.IOException
3 frames hidden
java.lang.ProcessBuilder.start
822Web pages
1Solution
IOExceptionProcessBuilder.start822
Package namePatterns foundSolution coverageSummary coverage
java.lang7927
java.util.concurrent4667
java.io4419
java.lang.reflect4019
java.awt2397
java.net2282
sun.reflect2209
java.util1921
javax.swing1636
java.security1033
javax.naming1017
java.sql803
sun.net.www.protocol.http740
sun.net.www.protocol.https718
sun.nio.ch466
sun.rmi.server381
sun.rmi.transport.tcp326
java.util.zip322
com.sun.jndi.ldap289
java.util.regex285
com.sun.org.apache.xerces.internal.impl269
sun.net.www.http261
java.nio.file257
com.sun.org.apache.xerces.internal.parsers247
javax.swing.plaf.basic240
sun.misc236
java.util.logging172
com.sun.org.apache.xerces.internal.jaxp168
java.util.jar162
java.beans160
javax.swing.text158
java.nio157
sun.rmi.registry151
java.util.stream143
javax.security.auth.login143
java.text143
javax.management.remote.rmi142
java.rmi137
javax.imageio135
sun.rmi.transport134
sun.nio.cs131
javax.net.ssl129
java.awt.event124
com.sun.org.apache.xalan.internal.xsltc.trax117
java.awt.image115
javax.security.auth115
java.nio.channels110
java.rmi.server92
java.util.concurrent.locks90
javax.naming.directory88
Package nameClass namePatterns foundSolution coverageSummary coverage
java.langClassLoader2678
java.langClass2157
java.langThread1300
java.langString320
java.langThrowable278
java.langSystem172
java.langRuntime146
java.langStringBuilder119
java.langSecurityManager97
java.langStringBuffer59
java.langInteger58
java.langObject49
java.langDouble47
java.langAbstractStringBuilder43
java.langProcessBuilder43
java.langException40
java.langThreadGroup34
java.langLong33
java.langFloat28
java.langStringCoding21
java.langRuntimeException19
java.langProcessImpl14
java.langEnum13
java.langByte12
java.langThreadLocal12
java.langClassLoader$NativeLibrary11
java.langCharacter10
java.langUNIXProcess9
java.langNumberFormatException8
java.langClassNotFoundException8
java.langError8
java.langNullPointerException6
java.langIterable6
java.langShort6
java.langMath4
java.langClassLoader$14
java.langSecurityException4
java.langBoolean4
java.langNoClassDefFoundError4
java.langShutdown3
java.langClassCastException3
java.langIllegalArgumentException3
java.langLinkageError3
java.langThreadLocal$ThreadLocalMap2
java.langProcessEnvironment2
java.langUNIXProcess$DeferredCloseInputStream2
java.langStringCoding$StringDecoder2
java.langClassloader2
java.langIllegalStateException2
java.langOutOfMemoryError1
Package nameClass nameMethod namePatterns foundSolution coverage
java.langClassLoaderloadClass1833
java.langThreadrun1177
java.langClassforName758
java.langClassLoaderloadClassInternal378
java.langClassnewInstance286
java.langClassLoaderdefineClass186
java.langThrowable<init>112
java.langClassprivateGetDeclaredMethods110
java.langClassgetDeclaredMethods99
java.langClassLoaderdefineClass199
java.langRuntimeexec95
java.langClassgetConstructor089
java.langStringBuilderappend86
java.langThrowableprintStackTrace84
java.langClassforName073
java.langClassprivateGetDeclaredConstructors72
java.langClassgetDeclaredFields63
java.langSystemloadLibrary61
java.langClassgetMethod58
java.langString<init>54
java.langStringformat48
java.langClassgetMethods48
java.langThrowablefillInStackTrace44
java.langProcessBuilderstart42
java.langException<init>40
java.langObjectwait38
java.langClassgetConstructor37
java.langStringvalueOf36
java.langClassnewInstance032
java.langStringBufferappend32
java.langClassLoadergetResource31
java.langClassgetDeclaredMethod30
java.langClassprivateGetPublicMethods30
java.langSecurityManagercheckPermission28
java.langClassgetDeclaredConstructors27
java.langSystemgetProperty26
java.langSystemexit26
java.langClassgetAnnotation26
java.langClassgetDeclaredConstructor26
java.langIntegerparseInt25
java.langStringgetBytes24
java.langClassinitializeClass22
java.langClassprivateGetDeclaredFields21
java.langSystemload21
java.langDoubleparseDouble21
java.langClassgetDeclaredField20
java.langThread<init>20
java.langClassLoaderloadLibrary20
java.langClassgetMethod019
java.langThreadGroupuncaughtException19
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
java.langClassLoaderloadClassClassNotFoundException531
java.langClassLoaderloadClassNoClassDefFoundError349
java.langClassforNameClassNotFoundException254
java.langClassforNameNoClassDefFoundError159
java.langClassLoaderloadClassUnsupportedClassVersionError110
java.langClassLoaderloadClassInternalClassNotFoundException99
java.langClassLoaderloadClassSecurityException90
java.langClassnewInstanceNoClassDefFoundError83
java.langClassLoaderloadClassClassFormatError74
java.langClassLoaderloadClassInternalNoClassDefFoundError71
java.langRuntimeexecIOException70
java.langClassgetDeclaredMethodsNoClassDefFoundError65
java.langClassprivateGetDeclaredMethodsNoClassDefFoundError65
java.langThreadrunIOException62
java.langThreadrunNullPointerException58
java.langThrowableprintStackTraceClassNotFoundException58
java.langClassgetConstructor0NoClassDefFoundError57
java.langThreadrunRuntimeException57
java.langClassLoaderloadClassOutOfMemoryError56
java.langClassprivateGetDeclaredConstructorsNoClassDefFoundError54
java.langClassLoaderloadClassIllegalStateException50
java.langThreadrunIllegalStateException50
java.langClassLoaderdefineClassNoClassDefFoundError44
java.langClassLoaderdefineClass1NoClassDefFoundError43
java.langClassforNameUnsupportedClassVersionError43
java.langClassLoaderloadClassLinkageError40
java.langClassLoaderloadClassVertxException40
java.langClassgetDeclaredFieldsNoClassDefFoundError38
java.langClassLoaderloadClassNullPointerException38
java.langClassLoaderloadClassIncompatibleClassChangeError38
java.langClassLoaderloadClassStackOverflowError37
java.langClassLoaderloadClassInternalSecurityException33
java.langClassLoaderloadClassBundleException32
java.langClassgetMethodsNoClassDefFoundError32
java.langClassgetMethodNoClassDefFoundError31
java.langThreadrunSparkException29
java.langThreadrunNoClassDefFoundError29
java.langClassLoaderloadClassVerifyError29
java.langProcessBuilderstartIOException28
java.langThreadrunConnectException27
java.langClassLoaderloadClassRuntimeException27
java.langClassforName0ClassNotFoundException27
java.langThreadrunInvocationTargetException27
java.langClassforNameUnsatisfiedLinkError25
java.langThreadrunClassNotFoundException25
java.langThreadrunClassCastException25
java.langThreadrunIllegalArgumentException24
java.langString<init>OutOfMemoryError24
java.langClassLoaderloadClassInternalUnsupportedClassVersionError23
java.langClassLoaderloadClassInternalClassFormatError21