• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassNotFoundException

 
Kifar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Java Console Error:

Error loading class: EasyJava
java.lang.NoClassDefFoundError
java.lang.ClassNotFoundException: EasyJava
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at com/ms/applet/AppletPanel.securedClassLoad (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)

My HTML Tag:

<applet name="easyapplet" code="EasyJava.class" width=660 height=180 MAYSCRIPT>
</applet>

But this is run in Appletviewer.

pl help me

rafik
 
Jeff Bosch
Ranch Hand
Posts: 805
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can actually post as a reply to messages, rather than starting a new thread with the reply. The thread will be easier to follow this way.

Is your class file in the same directory as the html file?

Also, what's that MAYSCRIPT stuff? That may invalidate the Applet tag in IE because it's only valid in Netscape (and Microsoft doesn't like Netscape...)

[ January 12, 2005: Message edited by: Jeff Bosch ]
[ January 12, 2005: Message edited by: Jeff Bosch ]
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rafik --

Welcome to JavaRanch!

You may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. One name isn't enough. You can change your display name here. Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic