This documentation describes CodeMeter Java Core API by WIBU-SYSTEMS AG.
The API requires at minimum Java version 8.
See the new CodeMeter API Help (com.wibu.CodeMeter.CodeMeter) for further details.
General
This CodeMeter API provides a simple Java wrapper around our 'classic' CodeMeter Core API. There also exists a High Level Programming API (HipAPI).The API requires at minimum Java version 8.
Variants
With Version 4.40 we implemented a new CodeMeter interface in pure Java without using JNI. The new API has some minor interface changes (bugfixes) and a new namespace: "com.wibu.CodeMeter". The previous interface (namespace "com.wibu.cm") has been marked deprecated but will be deployed some time for backward compatibility.Native Library
The deprecated Java CodeMeter API (com.wibu.cm.CodeMeter) uses the JNI (Java Native Interface) to execute the calls. So during runtime you need the OS specific native library which is part of the CodeMeter Runtime Kit. The name of the library depends on the OS (e.g. "wibucmJNI.dll" for Windows 32-Bit) and is searched either in the system path (e.g. "C:\Windows\system32") or in a directory which can be specified via the java property 'com.wibu.cm.jni.path'.Upgrading existing code to the new CodeMeter API
In order to upgrade to the new CodeMeter Java API, change the namespace of any used classes from "com.wibu.cm" to "com.wibu.CodeMeter". Note that some internal datatypes have changed, so that some adjustments to already existing code need to be made. In most cases only occurences of java.lang.StringBuffer, which were replaced by java.lang.String, are affected. In some cases, internally used primitive datatypes were changed as well.See the new CodeMeter API Help (com.wibu.CodeMeter.CodeMeter) for further details.
Error Handling
In general all CodeMeter and CodeMeteAct methods indicate an error via their return value. The exact error should be retrieved using the cmGetLastError() method. The only Exceptions which may be thrown are Java exceptions due to classpath problems or error(s) loading/accessing the native library.Supported Operating Systems
The following operating systems are supported in general. For information about the compatibility to a specific version please contact us via e-mail to support@wibu.com.- Windows 32 and 64 Bit
- macOS (10.11 at minimum)
- Linux (Kernel 3.10 or later)
| Package | Description |
|---|---|
| com.wibu.cm | |
| com.wibu.CodeMeter |