Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in Integrating Jtwain Japplet in JSP/HTML

 
Rodricks george
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In order to load native libraries an applet needs to signed. Read all about it at HowCanAnAppletReadFilesOnTheLocalFileSystem.
 
Rodricks george
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you sir.. Its Working

-Rodricks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic