creating dll for JNI?.
0 posts in topic
Thread View Thread View
TOPIC ACTIONS:
 

creating dll for JNI?....
mac1234mac
Sat May 19, 2012 12:11 AM

Hello!

I've completed two JNI examples in Linux Ubuntu 11.04:

1. http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jniexamp.html

2. http://csharp.com/javacfort.html

Now I'd like to prepare Windows versions of these examples. But I stuck on creating
dll recognized by Windows. I tried CygWin, minGW and Visual C++ 2010 Express.
But gcc (Cygwin and minGW) and cl (Visual) have problems with such task.
Particularly with lines:

#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/mman.h>

Cannot find these headers. So my question is: how to create dll in such cases?. What tools should I
use, what commands should I issue?.
Or, perhaps, there are some other ways?. For example, running Linux versions in Windows?.
The biggest problem is this native library :(.

Cheers,

Mac.

About | Sitemap | Contact