This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Applets and the fly likes Problem in Integrating Jtwain Japplet in JSP/HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Applets
Reply 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: 35439
    
    9
In order to load native libraries an applet needs to signed. Read all about it at HowCanAnAppletReadFilesOnTheLocalFileSystem.


Android appsImageJ pluginsJava web charts
Rodricks george
Ranch Hand

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

-Rodricks
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem in Integrating Jtwain Japplet in JSP/HTML
 
Similar Threads
unexpected exception:please help
JTwain not working
Problem Deploying Applet
applet socketpermissions
other than Jtwain