aspose file tools*
The moose likes Applets and the fly likes 3 problems with my applet... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "3 problems with my applet..." Watch "3 problems with my applet..." New topic
Author

3 problems with my applet...

Jeanne Pierre
Greenhorn

Joined: Feb 23, 2006
Posts: 19
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.
Ben Zung
Ranch Hand

Joined: Mar 25, 2004
Posts: 109
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

Joined: Feb 23, 2006
Posts: 19
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

Joined: Mar 25, 2004
Posts: 109

I am confused then. Your class is still extends JFrame instead of JApplet.
[ March 02, 2006: Message edited by: Ben Zung ]
Jeanne Pierre
Greenhorn

Joined: Feb 23, 2006
Posts: 19
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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 3 problems with my applet...
 
Similar Threads
Could it be Tomcat; I cant get my result on the screen
problem with actionEvent command
Problem getting result on Page
Problem getting result on Page
Web-based GUI using JDBC