This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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

3 problems with my applet...

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am very new to programming Java applet. I am having problems with my Java applet not showing up on Firefox 1.0 so I upgraded to Firefox 1.5. The Browser says that I need a plugin, but when I click the button to try to download the plugin it says, "No suitable plugins were found". I have checked it on IE 6.0 and the applet showes up on a different page, but at the bottom of the browser it says, "Loading Java Applet Failed...". I asked someone else to check it out for me and they get a "Page Cannot be displayed" on their IE browser. So that is Three problems that I am struggling with: 1) How do I get the applet to show up on Firefox; 2) How do I get it to show up on IE; and 3) How do I get the Applet to stay on the requesting browser?
I would greatly appreciate it if someone could offer me some advise as to what I could possibly be doing wrong.

The java file(licenseForm.java) that is being compiled is located in /usr/local/tomcat
The .class file (licenseForm.class) that is generated is located in /usr/local/tomcat/webapps/ROOT
The applet file (in which licenseForm.class file is being called) is located in /usr/local/tomcat/webapps/ROOT

Applet code (licenseForm.html):


Here is my java application (licenseForm.java):

If it helps I am using Apache Tomcat 5.0.30
I have tried to provide as much detail as possible.
Please let me know if I have left anything out.
 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a reminder: Your question is answered in "Tomcat" forum by Ben Souther. Seems like you are posting the same question here again.
 
Jeanne Pierre
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ben in regards

Just a reminder: Your question is answered in "Tomcat" forum by Ben Souther. Seems like you are posting the same question here again.



was another question, because I was getting an error on the browser. Now that I know about making it an applet and therefor made it an applet I ran into some other difficulties.
 
Ben Zung
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am confused then. Your class is still extends JFrame instead of JApplet.
[ March 02, 2006: Message edited by: Ben Zung ]
 
Jeanne Pierre
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Ben,
Not sure maybe I might be doing it wrong or something.
So this is what happens:
Once I compile the .java program I put the .class in the ROOT directory with the .html file. Then in the .html file a call is made to the .class file

<TABLE BORDER=1 cellpadding=10>
<TR><TD>
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#version=1,3,0,0";
width="600" height="800" align="baseline">
<param name="CODE" value="licenseForm.class">
<param name="type" value="application/x-java-applet;version=1.3">
<param name="MAYSCRIPT" value="true">
<param name="scriptable" value="true">
<comment>
<embed code="licenseForm.class" width="400" height="400"
type=application/x-java-applet;version=1.4.2"
pluginspage="http://java.sun.com/j2se/1.5.0/download.jsp">;
<noembed>
No Java 2 SDK, Standard Edition v 1.4.2 or greater support for APPLET!!
</noembed></embed></comment>
</object>

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic