why do i get classcastexception in applets..
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   viral_barot
Posted On:   Saturday, November 1, 2003 03:00 AM

i am getting ClassCastException when i run my application on applets.
The same application is running on desktop fine. but it doesn't do well on applet. i have embedded Frames in applet.. and i try to run it on browser.


i am compiling it with j2sdk1.3 and running it on jre1.4.1
also i am using jre1.4.1 as java pluggins in Internet Explorer 6.0 .
is there any compatible issues in java when using different version of java at compilation and run time ?

Re: why do i get classcastexception in applets..

Posted By:   Luke_Elliot  
Posted On:   Tuesday, November 18, 2003 08:46 AM

Typically I get these errors when I try to typecast an Object into something it isn't.
(users)anArray[i];
where users is a class of some sort and anArray is filled with another type of object.
About | Sitemap | Contact