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

problem using browser with applet ??

 
Greg DeKeyser
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey, im new...so help please?
im trying to get my el-lame-o applet to work in my browser....but all i get is a grey box. the applet works when i use appletviewer at the command line. i tried resetting security settings and all that for internet exloder, but it still wont work.
my html is as follows:
<html>
<APPLET code="d:\java\TestApp.class" width=500 height=100>
</APPLET>
</html>
i have the class file in the same directory as the HTML fle. and i have the correct spelling and case for the names.....
when i roll my mouse across the grey box theres a message at the bottom of the IE window that says "load: class TestApp not found"

what am i missing here?
thanks!
Greg
 
Brusk Baran
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do not use absolute address. since they are in the same directory use code=".....class".
I guess it is also browser specific. When the standards are not crystally clear the vendors interpret acc. to their wish..
ciao.
c.g.
 
Greg DeKeyser
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
still does the same thing
*scratches head confused*
i've tried
<APPLET code="TestApp.class" width=500 height=100>
<APPLET code=TestApp.class width=500 height=100>
<APPLET code=TestApp width=500 height=100>
..
i dont get it
 
Ash Rai
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go to Internet Options/Advanced and check Java Sun. This is required for Applets. Try it and then let us know if it works!
 
Jay Schrock
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try adding a codebase param to your html, and for your code param simply say what the java module is. For example.
<PARAM NAME = NAME VALUE = yourClass >
<PARAM NAME = codebase VALUE = "." >
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it's a simple applet, post the code here; also paste the exact text of the html file. I'll compile it and see if I can get it to work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic