Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Class not found

  Asked By: Elliott    Date: Dec 10    Category: Java    Views: 683
  

I'm trying to run an applet in an HTML page
but I keep getting Class not found in the browser's
status bar. The HTML file is in the same directory as
the class file and I used the correct case in the
applet tag. The code runs correctly in appletviewer. I
saw some examples of this error when i searched in
google but they said that I should use awt instead of
swing and I am using awt. I can't seem to find what I
am doing wrong.

I'm using JCreator LE as my IDE and i compile it here
also.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Alyssa Campbell     Answered On: Dec 10

what is the code  that you using
whether any parameter exists in it or not
use command
<applet codebase = "d1.class">
</applet>
here d1.class is the class  name
or send me an example of the program.
Moreover, it seems your jdk path is not properly set as
you are using IDE.
if you can use simple jdk1.2.2 package.
it must run.

 
Answer #2    Answered By: Shelia Wells     Answered On: Dec 10

I think but i'm not sure that this is happening
because i'm using jdk1.4.1 i was able to compile  a
java file  when i was using 1.3 and it worked fine.
I'll try to go back to my old jdk and see if that
works.

 
Didn't find what you were looking for? Find more on Class not found Or get search suggestion and latest updates.




Tagged: