• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

running applets on the local host: how to?

 
Cristian Negresco
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Below is the html page on which the page is embedded. The index.html page is located on the same directory as RandomCircles.class. The applet doesn't work, the error is "class RandomCircles not found."
Why?
Thanks,
Cristian

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Mold Propagation Simulation</TITLE>
<SCRIPT language=JavaScript>
<!--
// Start simulation for all applets in document
function startCircles() {
for(var i=0; i<document.applets.length; i++)
document.applets[i].startCircles();
}
// Stop simulation for all applets in document
function stopCircles() {
for(var i=0; i<document.applets.length; i++)
document.applets[i].stopCircles();
}
// -->
</SCRIPT>
<BODY bgColor=#c0c0c0>
<H1>Mold Propagation Simulation</H1>
<APPLET code=RandomCircles.class width=100 height=100>
<PARAM NAME="code" VALUE="RandomCircles.class">
<PARAM NAME="width" VALUE="100">
<PARAM NAME="height" VALUE="100">
<PARAM NAME="codeBase" VALUE="">
</APPLET>
<P>

<FORM>
<INPUT onKlick=startCircles() type=button value="Start Simulations">
<INPUT onKlick=stopCircles() type=button value="Stop Simulations">
</FORM>
</P></BODY></HTML>
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this.
Give the full path of the class file from the context.
<jsp lugin type="applet"
code="FormulaInterface.class"
codebase="/SP/src/com/sp/common/formula/"
name="applet"
archive="archiveURI"
align="middle"
height="370"
width="600"
>
<jsp:fallback>problem with plugin</jsp:fallback>
</jsp lugin>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic