[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql-java
Subject:    Re: ClassFormatError when using netscape.
From:       Christian Mack <mack_kn () gmx ! de>
Date:       2000-05-21 6:44:39
[Download RAW message or body]

dushyanth harinath wrote:
> 
> Hi folks,
> when trying to run a Japplet using netscape the
> following error occurs.But it runs well with a
> appletviewer.
> 
> # Applet exception: error: java.lang.ClassFormatError:
> Class already loaded  java.lang.ClassFormatError:
> Class already loaded  at
> java.lang.ClassLoader.defineClass(ClassLoader.java:250)
>   at
> netscape.applet.AppletClassLoader.findClass(AppletClassLoader.java:763)
>   at
> netscape.applet.AppletClassLoader.loadClass1(AppletClassLoader.java:688)
> * at
> netscape.applet.AppletClassLoader.loadClass(AppletClassLoader.java:652)
>   at
> netscape.applet.AppletClassLoader.loadClass(AppletClassLoader.java:629)
>   at
> netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(DerivedAppletFrame.java:438)
>   at
> java.awt.EventDispatchThread$EventPump.dispatchEvents(EventDispatchThread.java:81)
>   at
> java.awt.EventDispatchThread.run(EventDispatchThread.java:135)
>   at
> netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(DerivedAppletFrame.java:911)
> 
> My html code is
> -------------------------
> <html>
> <applet code="test.class" archive="archeanclasses.jar"
>  height=600 width=600>
> </applet>
> </html>
> ----------------------------
> what is the cause of the above error.
> 
> Any ideas.
> 
> thanks.
> dushyanth.

Hi dushyanth

ClassFormatErrors are normally a problem of the compiler not to produce full compatible Java Bytecode.
Try recompiling your whole classes.

You also should know that the current browsers only support JDK 1.1.x VMs.
So you normally can't use swing classes like JApplet.

BTW:
The Applet-tag doesn't say anything about Exceptions.
You should mention which versions of Java and Netscape you try to use.

Tschau
Christian

---------------------------------------------------------------------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail java-thread1154@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail java-unsubscribe@lists.mysql.com instead.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic