Documentation ‎> ‎

Installation Instructions

Installing Library JAR File

JNIWrapper JAR files should be on the program's class path. Library file can be also placed on the boot class path or in the extension directory of Java runtime, but this is not required.

Installing Native Code Library

JNIWrapper native DLL can be placed virtually anywhere. Its actual location should take into account that Java code must find the DLL to load. It can be placed somewhere within program's library search path. Users can add search path to the default library loader used by JNIWrapper or even write a custom one that searches for native code in a predefined location. Since JNIWrapper v3.0 native libraries can be put into any jar library from the application's classpath (but not into the META-INF folder).

Windows

Certain users may like to install the native DLL into the directories on the default system path (e.g. Windows root or Windows\System32) – this requires adequate rights on NT/2000/XP systems. Installing native DLL this way may be convenient, but is not required.

Linux32

JNIWrapper native library libjniwrap.so can be placed into a system directory from the system path (e.g. /lib or /usr/lib). You can also specify custom library path using the LD_LIBRARY_PATH environement variable. System library paths are listed in the /etc/ld.so.conf file.

Linux64

JNIWrapper native library libjniwrap.so can be placed into a system directory from the system path (e.g. /lib64 or /usr/lib64). You can also specify custom library path using the LD_LIBRARY_PATH environement variable. System library paths are listed in the /etc/ld.so.conf file.

macOS

JNIWrapper native library libjniwrap.jnilib can be placed into the system directory /usr/lib. You can also specify custom library path using the LD_LIBRARY_PATH environement variable. System library paths are listed in the /etc/ld.so.conf file.

Solaris32

JNIWrapper native library libjniwrap.so can be placed into a system directory from the system path (e.g. /lib or /usr/lib). You can also specify custom library path using the LD_LIBRARY_PATH environement variable. System library paths are listed in the /etc/ld.so.conf file.

Solaris64

JNIWrapper native library libjniwrap.so can be placed into a system directory from the system path (e.g. /lib64 or /usr/lib64). You can also specify custom library path using the LD_LIBRARY_PATH environement variable. System library paths are listed in the /etc/ld.so.conf file.

AIX

JNIWrapper native library libjniwrap.so can be placed into a system directory from the system path (e.g. /lib or /usr/lib). You can also specify custom library path using the LD_LIBRARY_PATH environement variable. System library paths are listed in the /etc/ld.so.conf file.

Installing License File

License file is not the part of this package. It has to be obtained separately.

To obtain the license, visit the product's website (https://www.teamdev.com/jniwrapper) and request evaluation or purchase the product.

The license installation steps depend on the license format:

  • jniwrap.lic or teamdev.licenses have to be installed in the same directory as the native code library or in the META-INF subfolder of any JAR library from the application's classpath.

  • licence.jar or license.jar are JAR files that already contains the JNIWrapper license in the required location, therefore, there is no need to modify the existing JARs or create a separate one yourself. All you need is to add the Jar to the class path of your application.

Warning: Do NOT rename the license file or it will not be recognized.