To be able to access BETA from Java code we have to go through C. From Java to C we use JNI and from C to BETA we use callbacks installed with a specially created DLL.
Besides the Java- and BETA-file we need 4 additional files:
The figure below describes the path of a function call to BETA.
To make this work you have to do the following:
beta -s 321 betaDispatchcl betaDispatch.lib
-Ic:\j2sdk1.4.0_02\include -Ic:\j2sdk1.4.0_02\include\win32 -LD
CDispatch.c FeMjolner.dllMjolner.dll and betaDispatch.dll) is now moved to
c:\WINNT\system32Further details on the Java to C can be found at sun/JNI. And details on the C to BETA part can be found here: using DLL in BETA