Meaningless Drivel is fun!*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "can Watch "can New topic

can't able to get applet in browser

sasank manohar
Ranch Hand

Joined: Feb 14, 2008
Posts: 186

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


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.

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12759

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.

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

Joined: Mar 22, 2005
Posts: 41064
Start reading here:

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

Joined: Feb 14, 2008
Posts: 186
ok, i will do that thanks
It is sorta covered in the JavaRanch Style Guide.
subject: can't able to get applet in browser
Similar Threads
Applet not inited message in JSP... what may be the reason
How to get a File object from a InputStream or BufferedReader?
struts2 + Tiles, why pages shrink in top center ?
Runtime parameter changes
Argh....all I want to do is load this applet..