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 SDK 1.4.0_01 Problem

Empfohlene Antworten

Veröffentlicht

Ich habe folgendes Testprogramm geschrieben!/*

import java.awt.*;


public class Test
{
public static void main(String[] args)
{
Frame wnd = new Frame("Test");

wnd.setSize(400,300);
wnd.setVisible(true);
};
}
[/PHP]

jetzt bekomme ich beim ausführen!!! compil. geht ohne Probleme entweder die Fehlermeldung

Exception in thread "main" java.lang.NoClassDefFoundError: C:\Test

oder wenn ich z.B. JOE verwende um mein kleines Programm zu starten

An unexpected exception has been detected in native code outside the VM.

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D08723A

Function=AWTIsHeadless+0x11B9

Library=D:\j2sdk1.4.0_01\jre\bin\awt.dll

Current Java thread:

at sun.awt.windows.WToolkit.init(Native Method)

at sun.awt.windows.WToolkit.run(WToolkit.java:209)

at java.lang.Thread.run(Thread.java:536)

Dynamic libraries:

0x00400000 - 0x00406000 D:\J2SDK1~1.0_0\bin\java.exe

0x77880000 - 0x77901000 C:\WINNT\System32\ntdll.dll

0x77DA0000 - 0x77DFB000 C:\WINNT\system32\ADVAPI32.dll

0x77E70000 - 0x77F32000 C:\WINNT\system32\KERNEL32.DLL

0x77D30000 - 0x77DA0000 C:\WINNT\system32\RPCRT4.DLL

0x78000000 - 0x78046000 C:\WINNT\system32\MSVCRT.dll

0x6D330000 - 0x6D445000 D:\J2SDK1~1.0_0\jre\bin\client\jvm.dll

0x77E00000 - 0x77E64000 C:\WINNT\system32\USER32.dll

0x77F40000 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL

0x77540000 - 0x77571000 C:\WINNT\System32\WINMM.dll

0x6BC00000 - 0x6BC14000 C:\WINNT\System32\snd930.dll

0x6D1D0000 - 0x6D1D7000 D:\J2SDK1~1.0_0\jre\bin\hpi.dll

0x6D300000 - 0x6D30D000 D:\J2SDK1~1.0_0\jre\bin\verify.dll

0x6D210000 - 0x6D228000 D:\J2SDK1~1.0_0\jre\bin\java.dll

0x6D320000 - 0x6D32D000 D:\J2SDK1~1.0_0\jre\bin\zip.dll

0x6D000000 - 0x6D0F6000 D:\j2sdk1.4.0_01\jre\bin\awt.dll

0x777F0000 - 0x7780D000 C:\WINNT\System32\WINSPOOL.DRV

0x75DF0000 - 0x75E0A000 C:\WINNT\System32\IMM32.dll

0x77A40000 - 0x77B36000 C:\WINNT\system32\ole32.dll

0x6D180000 - 0x6D1D0000 D:\j2sdk1.4.0_01\jre\bin\fontmanager.dll

0x51000000 - 0x51044000 C:\WINNT\System32\DDRAW.dll

0x72810000 - 0x72816000 C:\WINNT\System32\DCIMAN32.dll

0x69000000 - 0x69125000 C:\WINNT\System32\ATIO2KAD.dll

0x77910000 - 0x77933000 C:\WINNT\system32\imagehlp.dll

0x72970000 - 0x7299D000 C:\WINNT\system32\DBGHELP.dll

0x68F30000 - 0x68F3B000 C:\WINNT\System32\PSAPI.DLL

Local Time = Tue Jun 11 11:38:25 2002

Elapsed Time = 1

#

# The exception above was detected in native code outside the VM

#

# Java VM: Java HotSpot Client VM (1.4.0_01-b03 mixed mode)

#

# An error report file has been saved as hs_err_pid1216.log.

# Please refer to the file for further information.

#

bitte helft mir, hab schon alles probiert, neuinstallation des JDK inkl. JRE eingeschlossen, classpath paramter gesetzt, wieder weggelassen etc.!

Thx

Stefan


public class Test
{
public static void main(String[] args)
{
Frame wnd = new Frame("Test");

wnd.setSize(400,300);
wnd.setVisible(true);
}
}
[/PHP]

versuch das ganze einmal ohne das semikolon ";" hinter der main-methode!

Schon probiert!

Das ";" ist auch nur dahingelangt, weil ich wirklich schon vieles durchgetest habe!

Trotzde Thx

Stefan

Hast du die Klasse "Test" in einem Packet abgelegt?

Wenn das so ist versuch mal in der Dosbox "java packetname.Klassenname"

Versuch es ansonsten mal unter JDK1.3 laufen zu lassen.

P.s.

DU SOLLST ARBEITEN!

Also mit JDK 1.3 funktioniert's. Bei mir zumindest. OK; er hängt sich auf, nachdem er das Fenster aufmacht, aber das Prog läuft. Hast es auch unter dem Klassennamen abgespeichert (Test.java)? Dumme Frage, ich weiss.

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.