This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Java Plug in for SWING applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Java Plug in for SWING applet" Watch "Java Plug in for SWING applet" New topic
Author

Java Plug in for SWING applet

Rekha Pande
Ranch Hand

Joined: Jan 29, 2004
Posts: 145
Hi all,

I didnt know where to post this request, but since it's related to servlet and applet .. i have decided to POST the request here...

after searching on the net, i came to know that a seprate java plug in is required for swing applets and after i went to the sun web site, i got the code for it ..

<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="120" height="160" align="middle"
codebase="http://java.sun.com/products/plugin/1.2/
jinstall-12-win32.cab#Version=1,2,0,0">
<PARAM NAME="code" VALUE="PlugInApplet.class">
<PARAM NAME="codebase" VALUE="../src/">
</OBJECT>

After executing the above code , my applet works perflectly even on those PC where the required plug in is not there.
But now there is a problem....

What if the user doesnot have internet access. My applet page is for Intranet purpose and not for internet...so it is possible that some users wouldn't be having internet access.

Can please some one tell me where i can download this same executable that is there in the codebase (http://java.sun.com/products/plugin/1.2/
jinstall-12-win32.cab#Version=1,2,0,0)
of the OBJECT tag..so that i can put the executable file on my server and then run it when required.

Pls help.

Thank u.
Manuel Moons
Ranch Hand

Joined: Mar 05, 2002
Posts: 229
As you can see the "codebase" parameter points to the JRE installation file. (cab file). Download the file. Place it on the intranet and refer to that location instead of the internet location.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java Plug in for SWING applet
 
Similar Threads
NT Problem..
One HTML for running JApplet for both IE and NS
ClassNotFoundException with Java Plugin
RMI with Log4J
Internet Explorer 5.0 and Applets