jcapi.dll : The jcapi c++ library for windows (32-bit version).

Windows jcapi.dll:

  1. you need (i.e. Windows XP):
    - c:\windows\system32\capi2032.dll
    - java sdk i.e. Sun's 1.4.2 which you will find by default in c:\j2sdk1.4.2
    - c:\j2sdk1.4.2\include\jni.h (you need to put these in the compilers search path)
    - c:\j2sdk1.4.2\include\win32\jni_md.h
    - uk_co_mmscomputing_device_capi_jcapi.h
  2. open console and cd to jcapi.cpp directory
  3. compile jcapi.cpp and therefore generate the library jcapi.dll like this (Borland C++ 5.5):
    either bcc32 -w-par -tWD jcapi.cpp
    or c:\borland\bcc55\bin\bcc32 -w-par -tWD -I"c:\borland\bcc55\include" -L"c:\borland\bcc55\lib" jcapi.cpp
    If you know and trust me :) you can download jcapi.dll here.
  4. put jcapi.dll into library path of java program (4 possibilities):
    1. use -Djava.library.path=... option, when you start the program.
    2. copy jcapi.dll to the java virtual machine's library folder c:\j2sdk1.4.2\jre\bin (Available for all programs started with this jvm [java virtual machine])
    3. or copy jcapi.dll to the operating system's library folder c:\windows\system32. (Available for all java programs and jvms; Just remember on 64 bit systems: 32 bit libraries go into SysWOW64 and 64 bit libraries into System32)
    4. or use uk.co.mmscomputing.util.JarLib.load(...)

Package : uk.co.mmscomputing.device.capi.win32
  1. ../uk_co_mmscomputing_device_capi_jcapi.h
  2. jcapi.cpp
  3. jcapi.dll