• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem using browser with applet ??

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 = "." >
 
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic