www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D and JNI - anyone?

reply Brad Anderson <brad dsource.dot.org> writes:
Has anyone been able to accomplish calling a D function from Java using 
JNI?

Or is this a limitation of not being able to make shared libs / dlls 
with DMD?  Theoretically, could GDC make a .so lib and then all we'd 
have to deal with is the JNI javah portion of the task?

BA
Feb 22 2005
parent MicroWizard <MicroWizard_member pathlink.com> writes:
D is able to create DLL on Win32. I have tried it, it works smoothly.
(Really it seems easier to me than C++ does it.)
Check the sample D programs in the dmd.zip file.

So I think JNI interface should be accesible, but I am not sure how.

Tamas Nagy

In article <cvepjo$2748$1 digitaldaemon.com>, Brad Anderson says...
Has anyone been able to accomplish calling a D function from Java using 
JNI?

Or is this a limitation of not being able to make shared libs / dlls 
with DMD?  Theoretically, could GDC make a .so lib and then all we'd 
have to deal with is the JNI javah portion of the task?

BA
Feb 22 2005