class not found within IE

class not found within IE

Post by taat » Thu, 18 Dec 2003 21:11:25


Hi,

I've written an applet. It properly works with Mozila. But with
Internet Explorer it says "Class [the applet's name] not found" or
something.
What is the problem? How can I fix it?

Thank you,
Siamak
 
 
 

class not found within IE

Post by Alex Hunsl » Thu, 18 Dec 2003 21:28:43


We're not telepathic. You need to give us more info, e.g. what the
applet referincnig code in the web page says etc.

 
 
 

class not found within IE

Post by Mark Haas » Fri, 19 Dec 2003 00:09:37

In article < XXXX@XXXXX.COM >,




Generally when IE does that, what is *actually* happening is that the
JVM is throwing a ClassFormatException. IE just doesn't have the
courtesy to tell you that.

What is ClassFormatException? Usually it means your class was compiled
for a higher version of the JVM than the browser is using. In fact, IE
is still using a very old version of the JVM by default. You'll need to
download the plugin and install it, if you have admin privileges on the
machine in question. If you don't, you're up the river without a paddle.

thanks microsoft!

--
|\/| /| |2 |<
mehaase(at)sas(dot)upenn(dot)edu
 
 
 

class not found within IE

Post by Alex Hunsl » Fri, 19 Dec 2003 01:20:04


Aha, I didn't know about that one!
Interesting info, thanks.
alex
 
 
 

class not found within IE

Post by taat » Fri, 19 Dec 2003 04:11:51


:-D
OK!

In the html file I have something like this:
<applet code="DNARender.class" codebase="class" width="400"
height="400"
name="theRender" id="theRender">
Sorry! You must have a Java enabled browser to see this item.
</applet><br>

The class files are in \class\ directory.
I use the newest version of "jikes" as compiler.

Any other information would probably be the details of my program
which I guess would not be of your interest.

Thanks,
Siamak
 
 
 

class not found within IE

Post by taat » Fri, 19 Dec 2003 04:20:16


Does it mean that many other people may not see my applet unless they
install the newer version of the JVM?!! What should I do then? Is
there a way to force the compiler to generate older version byte
codes?


Thank you,
Siamak
 
 
 

class not found within IE

Post by taat » Fri, 19 Dec 2003 19:39:24


Dear Mark,

Thank you for your help.

Actually I use "jikes" (IBM open-source Java compiler). It has the
same option though. But it doesn't make any better. I compiled my
project with "-target 1.1" option, and I received the same error as
before: "class DNARender.class not found"

Best,
 
 
 

class not found within IE

Post by aminada » Thu, 16 Dec 2004 00:43:29

I had the same problem with my applets..

I test you code:

javac -target 1.1 FourCalculator.java

and It's worked succesfuly for me!
Thank you very match, for you, and for google team.