Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

load a C++ library from a jsp...

 
jesus sanchez
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, im trying to load a dll from a jsp, i have do it from a servlet but i dont know what must i do in a jsp page
when i try
static{
System.loadLibrary("criptograf");
}
the jsp compiler returns:
java.lang.IllegalAccessError: try to access class CriptograficaDllN from
class _p7manage__jsp
the CriptografDllN does the call to the dll
Help me please!!!
i cant sleep!!!
 
PC RE
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have u taken a look into the Java Native Interface. If not here u go...
http://java.sun.com/docs/books/tutorial/native1.1/concepts/index.html
-PC RE
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic