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.

java.lang.NoClassDefFoundError

Empfohlene Antworten

Hi Leute,

ich habe da ein Prob zum Wochenende. Ich habe mir einen Kurs fuer Java schicken lassen und wollte beginnen. Soweit nicht schwer, JDK installiert, erstes Prog geschrieben:

class GanzEinfach {


	static void main (String args[]) {


		System.out.println ("Ich bin ganz einfach!");

	}

}

mit javac compiliert, mit java ausgefuehrte ... naja fast ausgefuehrt. Dann kam eben der Error aus dem Titel. Woran kann das liegen :confused:

Ein verzweifelter ...

Hi,

entweder bist du nicht im Verzeichnis wo die xy.class liegt oder die Umgebungsvariable CLASSPATH ist bei dir gesetzt und enthält nicht den . fürs aktuelle Verzeichnis.

Außerdem ist deine main Methode nicht public.

Gruß Jaraz

PS: http://www.boku.ac.at/javaeinf/jein1.html

Nach "Typische Anfänger-Fehler" suchen ;)

So, Fehler gefunden.

Problem war, dass ich mit

java GanzEinfach.class
ausfuehren wollte, anstatt mit
java GanzEinfach

.

Den Link sollte ich mir merken :D Danke

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.