English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Exception in thread "main" java.lang.NoClassDefFoundError: AddGuest (wrong name:
com/selectv/cxs/billing/AddGuest)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

> What does this error means & how to fix it?

2007-08-15 15:45:35 · 3 answers · asked by scottcky1985 3 in Computers & Internet Programming & Design

3 answers

NoClassDefFoundError means that the JVM cannot find the class in the classpath. Most likely, your classpath is missing a jar that you need.

2007-08-15 16:22:48 · answer #1 · answered by Rob C 3 · 2 0

The ClassLoader is looking for a class (in this case com. selectv. cxs. billing. AddGuest) and is unable to load it.

The class must have been present when the code was compiled, otherwise the compile wouldn't have worked, but it is not available when executing.

Your development environment should be able to tell you where that class comes from, and then you should be able to make sure that the relevant .jar is in the classpath.

2007-08-16 00:16:07 · answer #2 · answered by McFate 7 · 0 0

It means you're missing a try{} and catch{} on your handling.

2007-08-15 22:54:25 · answer #3 · answered by mdigitale 7 · 0 1

fedest.com, questions and answers