This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Chat applet not working in Internet Explorer

 
sushant
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have written a simple chat program which will use a chat applet as a client which will then lookup the server name.ie basically using rmi.
The chat works very fine in netscape but does not work in Internet Explorer.
It reports the error below :
java.lang.UnsatisfiedLinkError:
java/security/AccessController.doPrivileged Possible causes: If you are trying to use J/Direct (@dll.import), check your compiler version (for JVC, requires 4336 or greater.) If you are trying to use RNI, there are new requirements: see documentation.
at java/security/AccessController.doPrivileged
at sun/rmi/server/RemoteProxy.getLogLevel
at sun/rmi/server/RemoteProxy.<clinit>
at sun/rmi/server/RemoteProxy.getStub
at java/rmi/registry/LocateRegistry.getRegistry
at java/rmi/registry/LocateRegistry.getRegistry
at java/rmi/Naming.getRegistry
at java/rmi/Naming.lookup
at Client.Connect2Server
at ClientChat.start
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
i have even tried to upgrade the jvm version in I.E but it still doesnt work.....
Suggestions are very much welcome....
Thank you.
Sushant.
 
sushant
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..........
sorry to write again.but there was a simple solution to this problem......
I tried upgrading the jvm,and all other patches..but nothing seemed to work.....eventually i did this ::
For i.e use the object tag instead
like this;;;
if(navigator.appName=='Microsoft Internet Explorer')
{
document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="480" height="310" codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0"><PARAM NAME="java_code" VALUE="Chat"><PARAM NAME="java_codebase" VALUE="http://10.1.6.122:7001/chat"><PARAM NAME="java_type" VALUE="application/x-java-applet;version=1.2.2"><PARAM NAME="scriptable" VALUE="true"></OBJECT>');
}
else
{
document.writeln('<APPLET CODEBASE="http://10.1.6.122:7001/chat" CODE="Chat" WIDTH=480 HEIGHT=310>
</APPLET>');
}
this works perfectly...........somehow......
 
Stephanie Grasson
Ranch Hand
Posts: 347
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sushant,
I'm glad you were able to solve your problem!
Please be sure to register with a proper name. "sushant" does not follow the conventions. See here for details: http://www.javaranch.com/name.jsp
If you do not register properly, your account will be disabled. I would hate to see that happen.
Thank you.
Stephanie
 
Tanveer Rameez
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey Sushant
where from did you obtain the classid? Suppose I create a chat applet, how do I get the classid?
regards
Tanveer Rameez
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic