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.

Applikation auf JDK 1.2 funzt nicht.

Empfohlene Antworten

Veröffentlicht

Hab ein Problem mit meinem JDK 1.2, dieser kann meine

Java Applikation nicht ausführen, kompilieren tut er sie schon.

Der JDK läuft bei mir auf Win NT 4.0, habs auch schon auf Win98 und Win2000 versucht. Die Installation verläuft einwandfrei mit allen Komponenten, es laufen keine anderen Java-Entwicklungstools auf der Kiste.

Bei der Versionsabfrage im DOS-Prompt wird korrekt "java version 1.2" ausgegeben.

Ich hab hier mal meinen Beispielquellcode:



class Hello {

  public static void main (String [] arguments) {

    System.out.println("Testtext");

  }

}


Den Quellcode speicher ich dann als Hello.java ab, kompiliere ihn mit "javac Hello.java". Das Kompilat befindet sich dann in Hello.class. Wenn ich versuche, das Prog zu starten, bekomme ich die Fehlermeldung:

"Exception in thread main java.lang.NoClassDefFound Error:Hello" :mad:

Hab schon auch schon meine Umgebungsvariablen/Systemvariablen überprüft:

Path=C:\jdk1.2\bin

Classpath=C:\jdk1.2\lib\tools.jar

die verweisen korrekt auf den bin-Ordner bzw. auf jar-Datei.

Ich hoffe das mir jemand weiterhelfen kann, vielen Dank schon mal im Vorraus.

Problem gelöst... Dank an biirusooseeji

<FONT COLOR="#a62a2a" SIZE="1">[ 16. Oktober 2001 11:54: Beitrag 1 mal editiert, zuletzt von HarterSeemann ]</font>

Hi!

Versuch mal, das aktuelle Verzeichnis mit in den CLASSPATH reinzupacken..

Siehe auch: http://java.sun.com/j2se/1.3/install-windows.html

---schnipp---

The Java 2 SDK will work fine even if CLASSPATH is set for an earlier version of the SDK software, as long as it contains the current directory ".". However, if your CLASSPATH contains classes.zip (which was only in JDK 1.0.x and JDK 1.1.x), and you don't plan to continue using those earlier versions, you can remove that setting from the CLASSPATH now. In any case, if CLASSPATH is set, it should include the current directory -- this makes it possible to compile and then run classes in the current directory.

---schnapp---

b-san.

Super....

Funzt jetzt einwandfrei.

Hab das Verzeichnis mit in den Classpath eingetragen.

Danke nochmal für deine Hilfe,

wieder ein Problem weniger auf dieser Welt *gg*. :cool:

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.