aspose file tools*
The moose likes Applets and the fly likes Problem in Integrating Jtwain Japplet in JSP/HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Problem in Integrating Jtwain Japplet in JSP/HTML" Watch "Problem in Integrating Jtwain Japplet in JSP/HTML" New topic
Author

Problem in Integrating Jtwain Japplet in JSP/HTML

Rodricks george
Ranch Hand

Joined: Sep 10, 2006
Posts: 97
Hi all,


I downloaded a demo Japplet program for Jtwain and Integrated in HTML and Jsp... I kept Jtwain.dll file in c:\windows and Created a web project in Myeclipse and added the jar file in clas path and if i run the program .... i get the following error...


java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.jtwain)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkLink(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at net.javajeff.jtwain.JTwain.init(JTwain.java:196)
at examples.JTwainDemo3.JTwainDemo.init(JTwainDemo.java:52)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


What should i do to solve the problem, the Library(dll) is not loading....

-Thanks

Rodricks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42929
    
  68
In order to load native libraries an applet needs to signed. Read all about it at HowCanAnAppletReadFilesOnTheLocalFileSystem.
Rodricks george
Ranch Hand

Joined: Sep 10, 2006
Posts: 97
Thank you sir.. Its Working

-Rodricks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in Integrating Jtwain Japplet in JSP/HTML