File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes can't able to get applet in browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "can Watch "can New topic
Author

can't able to get applet in browser

sasank manohar
Ranch Hand

Joined: Feb 14, 2008
Posts: 186
//WelcomeApplet.jsp

import java.applet.*;



The above one is the applet program and the below program is using the plugin to plugin the applet into the browser and i use mozilla

//index.jsp




well i compiled it i am getting the message " This is Applet plugin example"

but below that i am getting a window in which the browser is indicating to " download plugin" instead giving a " welcome" message.

so what could be the problem

i tried both line 1 and line2 but the problem persists. I am using netbeans ide 6.5 and all this i am doing in a project name "PluginAppletJSP"

I also tried by copying the WelcomeApplet.class file in webpages and run it but no use.


"SCJP5 | SCWCD5| DEVELOPER"
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5


Is the wrong idea. Applet classes are loaded by a browser with requests to the server. The server can only serve classes from the web application directory system. Any good applet tutorial should help you on this.

Bill
sasank manohar
Ranch Hand

Joined: Feb 14, 2008
Posts: 186
yeah bill, i did not realize this until you said it, and what should i do now so that this works !
thanks anyway .yeah i don't know much about applets but you know basically i am learning jsps now so i just want to experiment a bit with plugin .
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41525
    
  53
Start reading here: http://java.sun.com/docs/books/tutorial/deployment/applet/html.html


Ping & DNS - my free Android networking tools app
sasank manohar
Ranch Hand

Joined: Feb 14, 2008
Posts: 186
ok, i will do that thanks
 
 
subject: can't able to get applet in browser