JNI
hola q tal
como creo una libreria (dll).
El ejemplo del tutorial de JNI usa microsoft visual C++ y yo tengo Borland C++
pero no se como crearla
como creo una libreria (dll).
El ejemplo del tutorial de JNI usa microsoft visual C++ y yo tengo Borland C++
pero no se como crearla
bueno, he solucionado mi problema, por si a alguien le interesa aqui dejo como:
To generate DLL
create bcc32.cfg file in %BORLAND_INSTALL%/BCC5/bin Folder
In the bcc32.cfg file add following code
-I"%BORLAND_INSTALL%BCC55include;%JAVA_HOME%include;%JAVA_HOME%includewin32"
-L"%BORLAND_INSTALL%BCC55lib;%BORLAND_INSTALL%BCC55LibPSDK;"
i.e the path for borland compiler and java.
now goto prompt and say
prompt>bcc32 -tWM -tWD myFile.c
This will create myFile.lib File
Now say
prompt>implib -c myFile.lib myFile.dll
That's it!!
there you are with dll
Now you can run the mac.class file by using java
To generate DLL
create bcc32.cfg file in %BORLAND_INSTALL%/BCC5/bin Folder
In the bcc32.cfg file add following code
-I"%BORLAND_INSTALL%BCC55include;%JAVA_HOME%include;%JAVA_HOME%includewin32"
-L"%BORLAND_INSTALL%BCC55lib;%BORLAND_INSTALL%BCC55LibPSDK;"
i.e the path for borland compiler and java.
now goto prompt and say
prompt>bcc32 -tWM -tWD myFile.c
This will create myFile.lib File
Now say
prompt>implib -c myFile.lib myFile.dll
That's it!!
there you are with dll
Now you can run the mac.class file by using java
