java.lang.NoClassDefFoundError

tameck

Erfahrenes Mitglied
Morgen Zusammen :)

Ich habe ein Java Applet in eine Homepage eingefügt nur das Applet wird nicht angezeigt in der Java Console kommt der Fehler java.lang.NoClassDefFoundError was stimmt da nicht ?

Freu mich über eure Hilfe :)

LG Chris
 
Die Korrekte Fehlermeldung heiß:

java.lang.NoClassDefFoundError: BDAAD (wrong name: Abteilungsachen/BDAAD)

Die HTML Datei liegt in dem Verzeichniss in der die Klasse gezeichnet ist. Das Applet besteht nur aus einer Klasse musste Strukturiert programmieren :(

Ich zeig dir mal meinen HTML CODE vll hilft er dir weiter

Code:
<html>
<head>
<title>BDAAD</title>
</head>
<body>
<p>
  <APPLET CODE="BDAAD.class" WIDTH="800" HEIGHT="600">
     <param name="BDAAD" value="BDAAD">
  </APPLET>
</p>

</body>
</html>

wie meinst du das mit den Packages
 
Hmm HTML ist nicht mein Ding, aber vielleicht musst du hier: <APPLET CODE="BDAAD.class" WIDTH="800" HEIGHT="600">
statt nur BDAAD.class, den gesammten Pfad eingeben?!
 
Wenn ich den kompletten Pfad angebe bringt er mir folgende Fehlermeldund das er die Class nicht findet
 
Hab gegoogelt nach der Fehlermeldung:

java.lang.NoClassDefFoundError : applet_name
class class_name got a security violation: method verification error

One or more methods used by the applet is not found in the Java library files of the browser. This could mean one of the following problems:

* The applet is not compatible with the browser. The applet is either compiled using a newer version of the Java compiler or an API not supported by the browser. Solution: Download the Java plugin from the official Java web site of Sun Microsystems.

* The classpath setting in the operating system caused the browser to look for the library files in the wrong directory. Solution: Comment out the line "set classpath = ..." by putting "rem " before the line in autoexec.bat

* The browser contains missing or corrupted Java library files. Solution: Uninstall the browser and then reinstall it.
 

Neue Beiträge

Zurück