Forums Register Login

DLL, my own class & Tomcat, JSP

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Did you import it?
+Pie Number of slices to send: Send
it's not in a package - because before thats what I tried above - getting another error :-(
This is awkward. I've grown a second evil head. I'm going to need a machete and a tiny ad ...
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1123 times.
Similar Threads
WebSphere Application Server 6.0.2.0 (Error 500)
servlet-jdbc help!!!!!!!!!!!!!!!
problem with urldecoder in doGet mehtod
problem with response commitment
Problem in executing shell script using JSP
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:16:56.