Stay organized with collections
Save and categorize content based on your preferences.
NoClassDefFoundError
open class NoClassDefFoundError : LinkageError
Thrown if the Java Virtual Machine or a ClassLoader
instance tries to load in the definition of a class (as part of a normal method call or as part of creating a new instance using the new
expression) and no definition of the class could be found.
The searched-for class definition existed when the currently executing class was compiled, but the definition can no longer be found.
Summary
Public constructors |
Constructs a NoClassDefFoundError with no detail message.
|
Constructs a NoClassDefFoundError with the specified detail message.
|
Public constructors
NoClassDefFoundError
NoClassDefFoundError()
Constructs a NoClassDefFoundError
with no detail message.
NoClassDefFoundError
NoClassDefFoundError(s: String!)
Constructs a NoClassDefFoundError
with the specified detail message.
Parameters |
s |
String!: the detail message. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# NoClassDefFoundError\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nNoClassDefFoundError\n====================\n\n```\nopen class NoClassDefFoundError : LinkageError\n```\n\n|---|---|---|---|-------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) ||||\n| | ↳ | [java.lang.Error](/reference/kotlin/java/lang/Error) |||\n| | | ↳ | [java.lang.LinkageError](/reference/kotlin/java/lang/LinkageError) ||\n| | | | ↳ | [java.lang.NoClassDefFoundError](#) |\n\nThrown if the Java Virtual Machine or a `ClassLoader` instance tries to load in the definition of a class (as part of a normal method call or as part of creating a new instance using the `new` expression) and no definition of the class could be found.\n\nThe searched-for class definition existed when the currently executing class was compiled, but the definition can no longer be found.\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [NoClassDefFoundError](#NoClassDefFoundError())`()` Constructs a `NoClassDefFoundError` with no detail message. |\n| [NoClassDefFoundError](#NoClassDefFoundError(kotlin.String))`(`s:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs a `NoClassDefFoundError` with the specified detail message. |\n\nPublic constructors\n-------------------\n\n### NoClassDefFoundError\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nNoClassDefFoundError()\n```\n\nConstructs a `NoClassDefFoundError` with no detail message. \n\n### NoClassDefFoundError\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nNoClassDefFoundError(s: String!)\n```\n\nConstructs a `NoClassDefFoundError` with the specified detail message.\n\n| Parameters ||\n|-----|--------------------------------------------------------------------------------------------------------|\n| `s` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message. |"]]