## # Download JNA e.g. from GitHub # https://github.com/java-native-access/jna # tested with versions 4.5.1, 4.2.2, 4.1.0 # and 5.13.0 # # Because of API differences in the JNA between version 4 and 5 # the current implementation uses Native.load() for JNA-5.x. # For JNA-4.x JedbCreator.java needs a small change to # use Native.loadLibrary() instead (see comment in the code). ## # Compile Test Program Tapp1.java with JedbCreator.java # (the JNA-Interface to the EDB Creator API) # javac -d . JedbCreator.java Tapp1.java -cp $PATH_TO_JNA_JAR/jna-5.13.0.jar ## # Run the Test Program Tapp1.java to create the EDB file tapp1.edb # (using libedbcreatorD.so/dll as defined in JedbCreator.java) # (the class path should include the directory where the so/dll is installed) # # Note: When using JNA before version 4.3.0 the Windows x86-64 binaries # therein require MS Visual Studio 2010 redistributables # (MSVCR100.DLL) to be installed in order to run. # # Note: When using JNA version 4.5.0 or higher the Linux binaries # therein require glibc 2.7 or newer in order to run. # # Note: You must start the Java VM with the proper default file encoding # e.g. -Dfile.encoding=UTF-8 when you are expecting UTF-8 strings. # # Note: Windows uses ';' instead of ':' to separate classpath elements # java -cp .:$PATH_TO_JNA_JAR/jna-5.13.0.jar:$PATH_TO_LIBEDBCREATORD_DIR \ -Dfile.encoding=UTF-8 demo.Tapp1 tapp1.edb