Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

problem using browser with applet ??

 
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
 
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
 
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!
 
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 = "." >
 
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.
 
Self destruct mode activated. Instructions for deactivation encoded in this tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic