Hello
I would like to use a DLL from a session bean.
The problem is that I keep getting a java.lang.Error thrown
when I call my wrapper methods.
The setup is like this:
I have my home, remote and implementation bean.
Then I have a class, that looks something like this:
public class Foo{
public Foo() { System.loadLibrary("boo"); }
public static native void m1();
// static { System.loadLibrary("boo"); } // Have tried that too
}
When I try to call method m1, I get an Error thrown back.
A getMessage() on the Error just returns m1 - not much help :-(
I know the code works, 'cause I have used it in an application.
The bean also works, I have tested it without the calls to the
native code.
The dll is in the system path also, I tried calling the code when
the dll was not in the path, and it reported that it could not find
the dll. After I put it in the path I get the above Error.
The DLL method I call does a " cout << "hello"; " as its first thing
could that be a problem?
Anybody out there that can help?
Regards Brian
--
/Brian
http://home1.stofanet.dk/brian.bek/
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]