Veröffentlicht 26. Juni 200619 j 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?
29. Juni 200619 j vielleicht musst du noch irgendwelche jars einbinden, die ausserhalb von netbeans nicht bekannt sind. bigredeyes
29. Juni 200619 j 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.
Archiv
Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.