Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Netbeans Java

Empfohlene Antworten

Veröffentlicht

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?

vielleicht musst du noch irgendwelche jars einbinden, die ausserhalb von netbeans nicht bekannt sind.

bigredeyes

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.