pencil Geschrieben 26. Juni 2006 Geschrieben 26. Juni 2006 Hallo, ich habe ein Java-Applet (Swing und AWT) mit NetBeans erstellt. Wenn ich dieses mit NetBeans starte gibt es keine Probleme, aber wenn ich dieses mit einen Browser (Firefox oder IE) starte kommt folgende Meldung in der Java-Console und das Applet wird nicht ausgefuehrt. java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Exception in thread "Thread-459" java.lang.NullPointerException at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source) at sun.plugin.AppletViewer.showAppletException(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) java.lang.NullPointerException at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source) at sun.plugin.AppletViewer.showAppletStatus(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Kennt jemand eine Loesung?
bigredeyes Geschrieben 29. Juni 2006 Geschrieben 29. Juni 2006 vielleicht musst du noch irgendwelche jars einbinden, die ausserhalb von netbeans nicht bekannt sind. bigredeyes
perdian Geschrieben 29. Juni 2006 Geschrieben 29. Juni 2006 Javadoc-Auszug für java.lang.NoClassDefFoundError: "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. Kennt jemand eine Loesung?Ja, die Klasse "org.jdesktop.layout.GroupLayout" mit in den Classpath aufnehmen.
Empfohlene Beiträge
Erstelle ein Benutzerkonto oder melde Dich an, um zu kommentieren
Du musst ein Benutzerkonto haben, um einen Kommentar verfassen zu können
Benutzerkonto erstellen
Neues Benutzerkonto für unsere Community erstellen. Es ist einfach!
Neues Benutzerkonto erstellenAnmelden
Du hast bereits ein Benutzerkonto? Melde Dich hier an.
Jetzt anmelden