on 11-22-2005 4:17 AM
Hello Everybody,
Can we take use of DLLs in webdynpro?
I have some functionality embedded in DLL and wants to take use of that functionality. Is there any procedure to take use of?
Waiting for reply.
Thanks in advance,
Bhavik
Hello Bhavik,
To use DLL from Java you need Java Native Interface(JNI). Check appropriate tutorial http://java.sun.com/docs/books/tutorial/native1.1/
and
http://bdn.borland.com/article/0,1410,20679,00.html
...
http://www.google.com/search?hl=en&q=howtousedllinjava&btnG=GoogleSearch
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<i>But, is there anything else?
Is there any method to declare that Dll as API and take use of that api etc?</i>
Nothing. JNI is the only way. At least, it is the simplest one: more complex but correct in J2EE environment is to wrap functionality as Resource Adapter.
If your DLL is a COM library, then you probably may use some Java toolkits that create wrappers automatically for you (but it will be still JNI underneath).
It seems you are really missing MS-only J++ features
Valery Silaev
EPAM Systems
This is specific by toolkit used.
However, the sequence is almost the same for all of them:
1. Generate wrappers sources via some supplied wizard (can output Java or Java and C/C++ code)
2. Compile Java sources
3. Build helper dlls (from C/C++ sources)
4. Use
http://www.google.com/search?q=JavaCOMbridge
VS
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.