• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with classes in Jar

 
Ravee Bhat
Ranch Hand
Posts: 72
Eclipse IDE Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have two applets in different packages extending an applet from someother package.

Applet A is replica of Applet B above. they both have a textfield and button to transfer texts from each other.
now the html is like this

both the jars have the respective Applet classes and their parent class.
now this setting produces a NoClassDefFoundError when I try to send a text from one applet to the other.
And if I mention both the jars in archive attrib then they work. if I change the order (1.jar,2.jar in one tag and 2.jar,1.jar in another) then they throw ClassCastException.
I am very much puzzled by this behaviour.
I use IE 5.0 and Phoenix 0.4 with JRE Plug-in version 1.4.0_01-ea. Could someone throw some light?
thanks and regards
Ravee.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!