Meaningless Drivel is fun!
The moose likes Applets and the fly likes Problem in running swing application inside browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Problem in running swing application inside browser" Watch "Problem in running swing application inside browser" New topic

Problem in running swing application inside browser

sriram sundararajan
Ranch Hand

Joined: Apr 08, 2003
Posts: 43
I am having a swing application which captures the electronic signature from the signature pad. When i am running this as a standalone application, it is working fine. But when i try to run this inside the browser it is not running, since i am using the third party jars to capture the signature i think it is not working. I am using the below code snipped to plugin the swing application inside browser.
Let me know how to refer the third party jar files here.....

classid = "clsid:CAFEEFAC-0015-0000-0009-ABCDEFFEDCBA"
codebase = ",0,90,3"
WIDTH = "500" HEIGHT = "300">
<param name = "code" value = "com/acs/luc/signPad/HelloSwingApplet.class" >
<!-- the below jar not able to identify -->
<param name = "archive" value = "C:\SigPlus2_47.jar" >
<param name = "type" value = "application/x-java-applet;jpi-version=1.5.0_09">
<param name = "scriptable" value = "false">


Rob Spoor

Joined: Oct 27, 2005
Posts: 20083

Probably caused because applets are run in a sandbox environment. Moving to applets.

How To Ask Questions How To Answer Questions
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 691
There should be an error message in the browser's java console.
Copy and paste it here.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
Indeed, applets that interact with local hardware will need to be signed. See HowCanAnAppletReadFilesOnTheLocalFileSystem for more details.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Problem in running swing application inside browser
It's not a secret anymore!