Uses of Class
java.lang.ClassNotFoundException
-
Packages that use ClassNotFoundException Package Description java.awt.datatransfer Provides interfaces and classes for transferring data between and within applications.java.beans Contains classes related to developing beans -- components based on the JavaBeans™ architecture.java.beans.beancontext Provides classes and interfaces relating to bean context.java.io Provides for system input and output through data streams, serialization and the file system.java.lang Provides classes that are fundamental to the design of the Java programming language.java.lang.instrument Provides services that allow Java programming language agents to instrument programs running on the JVM.java.lang.invoke Thejava.lang.invoke
package contains dynamic language support provided directly by the Java core class libraries and virtual machine.java.net Provides the classes for implementing networking applications.java.rmi Provides the RMI package.java.rmi.server Provides classes and interfaces for supporting the server side of RMI.java.security Provides the classes and interfaces for the security framework.javafx.fxml Contains classes for loading an object hierarchy from markup.javax.activation javax.crypto Provides the classes and interfaces for cryptographic operations.javax.management Provides the core classes for the Java Management Extensions.javax.management.loading Provides the classes which implement advanced dynamic loading.javax.management.relation Provides the definition of the Relation Service.javax.rmi.CORBA Contains portability APIs for RMI-IIOP.javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components.jdk.jshell.execution Provides implementation support for building JShell execution engines.org.w3c.dom.bootstrap Provides a factory for obtaining instances ofDOMImplementation
.org.xml.sax.helpers Provides helper classes, including support for bootstrapping SAX-based applications. -
-
Uses of ClassNotFoundException in java.awt.datatransfer
Methods in java.awt.datatransfer that throw ClassNotFoundException Modifier and Type Method Description static DataFlavor
SystemFlavorMap. decodeDataFlavor(String nat)
Decodes aString
native for use as aDataFlavor
.void
DataFlavor. readExternal(ObjectInput is)
Restores thisDataFlavor
from a Serialized state.protected static Class<?>
DataFlavor. tryToLoadClass(String className, ClassLoader fallback)
Tries to load a class from: the bootstrap loader, the system loader, the context loader (if one is present) and finally the loader specified.Constructors in java.awt.datatransfer that throw ClassNotFoundException Constructor Description DataFlavor(String mimeType)
Constructs aDataFlavor
from amimeType
string.DataFlavor(String mimeType, String humanPresentableName, ClassLoader classLoader)
Constructs aDataFlavor
that represents aMimeType
. -
Uses of ClassNotFoundException in java.beans
Methods in java.beans that throw ClassNotFoundException Modifier and Type Method Description static Object
Beans. instantiate(ClassLoader cls, String beanName)
Instantiate a JavaBean.static Object
Beans. instantiate(ClassLoader cls, String beanName, BeanContext beanContext)
Instantiate a JavaBean.static Object
Beans. instantiate(ClassLoader cls, String beanName, BeanContext beanContext, AppletInitializer initializer)
Deprecated.It is recommended to useBeans.instantiate(ClassLoader, String, BeanContext)
, because the Applet API is deprecated. -
Uses of ClassNotFoundException in java.beans.beancontext
Methods in java.beans.beancontext that throw ClassNotFoundException Modifier and Type Method Description protected void
BeanContextServicesSupport. bcsPreDeserializationHook(ObjectInputStream ois)
called from BeanContextSupport readObject before it deserializes the children ...protected void
BeanContextSupport. bcsPreDeserializationHook(ObjectInputStream ois)
called by readObject after defaultReadObject() but prior to deserialization of any children.protected void
BeanContextSupport. deserialize(ObjectInputStream ois, Collection coll)
used by readObject to deserialize a collection.Object
BeanContext. instantiateChild(String beanName)
Instantiate the javaBean named as a child of thisBeanContext
.Object
BeanContextSupport. instantiateChild(String beanName)
The instantiateChild method is a convenience hook in BeanContext to simplify the task of instantiating a Bean, nested, into aBeanContext
.void
BeanContextSupport. readChildren(ObjectInputStream ois)
When an instance of this class is used as a delegate for the implementation of the BeanContext protocols (and its subprotocols) there exists a 'chicken and egg' problem during deserialization -
Uses of ClassNotFoundException in java.io
Methods in java.io that throw ClassNotFoundException Modifier and Type Method Description void
ObjectInputStream. defaultReadObject()
Read the non-static and non-transient fields of the current class from this stream.protected ObjectStreamClass
ObjectInputStream. readClassDescriptor()
Read a class descriptor from the serialization stream.void
Externalizable. readExternal(ObjectInput in)
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.ObjectInputStream.GetField
ObjectInputStream. readFields()
Reads the persistent fields from the stream and makes them available by name.Object
ObjectInput. readObject()
Read and return an object.Object
ObjectInputStream. readObject()
Read an object from the ObjectInputStream.protected Object
ObjectInputStream. readObjectOverride()
This method is called by trusted subclasses of ObjectOutputStream that constructed ObjectOutputStream using the protected no-arg constructor.Object
ObjectInputStream. readUnshared()
Reads an "unshared" object from the ObjectInputStream.protected Class<?>
ObjectInputStream. resolveClass(ObjectStreamClass desc)
Load the local class equivalent of the specified stream class description.protected Class<?>
ObjectInputStream. resolveProxyClass(String[] interfaces)
Returns a proxy class that implements the interfaces named in a proxy class descriptor; subclasses may implement this method to read custom data from the stream along with the descriptors for dynamic proxy classes, allowing them to use an alternate loading mechanism for the interfaces and the proxy class. -
Uses of ClassNotFoundException in java.lang
Methods in java.lang that throw ClassNotFoundException Modifier and Type Method Description protected Class<?>
ClassLoader. findClass(String name)
Finds the class with the specified binary name.protected Class<?>
ClassLoader. findSystemClass(String name)
Finds a class with the specified binary name, loading it if necessary.static Class<?>
Class. forName(String className)
Returns theClass
object associated with the class or interface with the given string name.static Class<?>
Class. forName(String name, boolean initialize, ClassLoader loader)
Returns theClass
object associated with the class or interface with the given string name, using the given class loader.Class<?>
ClassLoader. loadClass(String name)
Loads the class with the specified binary name.protected Class<?>
ClassLoader. loadClass(String name, boolean resolve)
Loads the class with the specified binary name. -
Uses of ClassNotFoundException in java.lang.instrument
Methods in java.lang.instrument that throw ClassNotFoundException Modifier and Type Method Description void
Instrumentation. redefineClasses(ClassDefinition... definitions)
Redefine the supplied set of classes using the supplied class files. -
Uses of ClassNotFoundException in java.lang.invoke
Methods in java.lang.invoke that throw ClassNotFoundException Modifier and Type Method Description Class<?>
MethodHandles.Lookup. findClass(String targetName)
Looks up a class by name from the lookup context defined by thisLookup
object. -
Uses of ClassNotFoundException in java.net
Methods in java.net that throw ClassNotFoundException Modifier and Type Method Description protected Class<?>
URLClassLoader. findClass(String name)
Finds and loads the class with the specified name from the URL search path. -
Uses of ClassNotFoundException in java.rmi
Methods in java.rmi that throw ClassNotFoundException Modifier and Type Method Description T
MarshalledObject. get()
Returns a new copy of the contained marshalledobject. -
Uses of ClassNotFoundException in java.rmi.server
Methods in java.rmi.server that throw ClassNotFoundException Modifier and Type Method Description Class<?>
LoaderHandler. loadClass(String name)
Deprecated.no replacementClass<?>
LoaderHandler. loadClass(URL codebase, String name)
Deprecated.no replacementstatic Class<?>
RMIClassLoader. loadClass(String name)
Deprecated.replaced byloadClass(String,String)
methodstatic Class<?>
RMIClassLoader. loadClass(String codebase, String name)
Loads a class from a codebase URL path.static Class<?>
RMIClassLoader. loadClass(String codebase, String name, ClassLoader defaultLoader)
Loads a class from a codebase URL path, optionally using the supplied loader.static Class<?>
RMIClassLoader. loadClass(URL codebase, String name)
Loads a class from a codebase URL.abstract Class<?>
RMIClassLoaderSpi. loadClass(String codebase, String name, ClassLoader defaultLoader)
Provides the implementation forRMIClassLoader.loadClass(URL,String)
,RMIClassLoader.loadClass(String,String)
, andRMIClassLoader.loadClass(String,String,ClassLoader)
.static Class<?>
RMIClassLoader. loadProxyClass(String codebase, String[] interfaces, ClassLoader defaultLoader)
Loads a dynamic proxy class (seeProxy
) that implements a set of interfaces with the given names from a codebase URL path.abstract Class<?>
RMIClassLoaderSpi. loadProxyClass(String codebase, String[] interfaces, ClassLoader defaultLoader)
Provides the implementation forRMIClassLoader.loadProxyClass(String,String[],ClassLoader)
. -
Uses of ClassNotFoundException in java.security
Methods in java.security that throw ClassNotFoundException Modifier and Type Method Description Object
SignedObject. getObject()
Retrieves the encapsulated object. -
Uses of ClassNotFoundException in javafx.fxml
Methods in javafx.fxml that throw ClassNotFoundException Modifier and Type Method Description static Class<?>
FXMLLoader. loadType(String className)
Deprecated.This method now delegates toFXMLLoader.getDefaultClassLoader()
.static Class<?>
FXMLLoader. loadType(String packageName, String className)
Deprecated.This method now delegates toFXMLLoader.getDefaultClassLoader()
. -
Uses of ClassNotFoundException in javax.activation
Methods in javax.activation that throw ClassNotFoundException Modifier and Type Method Description Object
CommandInfo. getCommandObject(DataHandler dh, ClassLoader loader)
Return the instantiated JavaBean component.void
MimeType. readExternal(ObjectInput in)
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. -
Uses of ClassNotFoundException in javax.crypto
Methods in javax.crypto that throw ClassNotFoundException Modifier and Type Method Description Object
SealedObject. getObject(Key key)
Retrieves the original (encapsulated) object.Object
SealedObject. getObject(Key key, String provider)
Retrieves the original (encapsulated) object.Object
SealedObject. getObject(Cipher c)
Retrieves the original (encapsulated) object. -
Uses of ClassNotFoundException in javax.management
Methods in javax.management that throw ClassNotFoundException Modifier and Type Method Description static Class<?>
DefaultLoaderRepository. loadClass(String className)
Deprecated.Go through the list of class loaders and try to load the requested class.static Class<?>
DefaultLoaderRepository. loadClassWithout(ClassLoader loader, String className)
Deprecated.Go through the list of class loaders but exclude the given class loader, then try to load the requested class. -
Uses of ClassNotFoundException in javax.management.loading
Methods in javax.management.loading that throw ClassNotFoundException Modifier and Type Method Description protected Class<?>
MLet. findClass(String name)
This is the main method for class loaders that is being redefined.Class<?>
ClassLoaderRepository. loadClass(String className)
Load the given class name through the list of class loaders.static Class<?>
DefaultLoaderRepository. loadClass(String className)
Deprecated.Go through the list of class loaders and try to load the requested class.Class<?>
MLet. loadClass(String name, ClassLoaderRepository clr)
Load a class, using the givenClassLoaderRepository
if the class is not found in this MLet's URLs.Class<?>
ClassLoaderRepository. loadClassBefore(ClassLoader stop, String className)
Load the given class name through the list of class loaders, stopping at the given one.Class<?>
ClassLoaderRepository. loadClassWithout(ClassLoader exclude, String className)
Load the given class name through the list of class loaders, excluding the given one.static Class<?>
DefaultLoaderRepository. loadClassWithout(ClassLoader loader, String className)
Deprecated.Go through the list of class loaders but exclude the given class loader, then try to load the requested class.void
MLet. readExternal(ObjectInput in)
Restore this MLet's contents from the givenObjectInput
. -
Uses of ClassNotFoundException in javax.management.relation
Constructors in javax.management.relation that throw ClassNotFoundException Constructor Description RoleInfo(String roleName, String mbeanClassName)
Constructor.RoleInfo(String roleName, String mbeanClassName, boolean read, boolean write)
Constructor.RoleInfo(String roleName, String mbeanClassName, boolean read, boolean write, int min, int max, String descr)
Constructor. -
Uses of ClassNotFoundException in javax.rmi.CORBA
Methods in javax.rmi.CORBA that throw ClassNotFoundException Modifier and Type Method Description static Class
Util. loadClass(String className, String remoteCodebase, ClassLoader loader)
Returns a class instance for the specified class.Class
UtilDelegate. loadClass(String className, String remoteCodebase, ClassLoader loader)
Delegation call forUtil.loadClass(java.lang.String, java.lang.String, java.lang.ClassLoader)
.void
StubDelegate. readObject(Stub self, ObjectInputStream s)
Delegation call forStub.readObject(java.io.ObjectInputStream)
. -
Uses of ClassNotFoundException in javax.swing
Methods in javax.swing that throw ClassNotFoundException Modifier and Type Method Description static void
UIManager. setLookAndFeel(String className)
Loads theLookAndFeel
specified by the given class name, using the current thread's context class loader, and passes it tosetLookAndFeel(LookAndFeel)
. -
Uses of ClassNotFoundException in javax.swing.text
Methods in javax.swing.text that throw ClassNotFoundException Modifier and Type Method Description void
StyleContext. readAttributes(ObjectInputStream in, MutableAttributeSet a)
Context-specific handling of reading in attributesstatic void
StyleContext. readAttributeSet(ObjectInputStream in, MutableAttributeSet a)
Reads a set of attributes from the given object input stream that have been previously written out withwriteAttributeSet
. -
Uses of ClassNotFoundException in jdk.jshell.execution
Methods in jdk.jshell.execution that throw ClassNotFoundException Modifier and Type Method Description protected Class<?>
DirectExecutionControl. findClass(String name)
Finds the class with the specified binary name.Class<?>
LoaderDelegate. findClass(String name)
Finds the class with the specified binary name. -
Uses of ClassNotFoundException in org.w3c.dom.bootstrap
Methods in org.w3c.dom.bootstrap that throw ClassNotFoundException Modifier and Type Method Description static DOMImplementationRegistry
DOMImplementationRegistry. newInstance()
Obtain a new instance of aDOMImplementationRegistry
. -
Uses of ClassNotFoundException in org.xml.sax.helpers
Methods in org.xml.sax.helpers that throw ClassNotFoundException Modifier and Type Method Description static Parser
ParserFactory. makeParser()
Deprecated.Create a new SAX parser using the `org.xml.sax.parser' system property.static Parser
ParserFactory. makeParser(String className)
Deprecated.Create a new SAX parser object using the class name provided.
-