• Post Reply Bookmark Topic Watch Topic
  • New Topic

DLL, my own class & Tomcat, JSP

 
Manfred Cross
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem using an external DLL with JSP on a tomcat server.

The following class calls the dll which is in c:\windows\system32


When I run this class in Eclipse, it works fine, but if I try the following jsp code - I get errors:
java.lang.UnsatisfiedLinkError: Initialize
pack.Test.Initialize(Native Method)



But I don't know what to do, tried so many things - and its not working!

So please HELP

Manfred
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Atom User,
Welcome to JavaRanch!

We're pleased to have you here with us in the JSP forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

You can change it here
 
Manfred Cross
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I removed test.class from the package, and now its working in Tomcat!!!
BUT
I want to call this class with its native methods from am JSP page - thats my code now:




JSP page
Code:


But there'S also an error:

..unable to compile
... Test cannot be resolved to a type

My class Test is on the tomcat server in in webapps\testapp\WEB-INF\classes

Any ideas?

Manni
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you import it?
 
Manfred Cross
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it's not in a package - because before thats what I tried above - getting another error :-(
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!