Javain Ltd. - Software Products

Java Platform Invoke...

Java Platform Invoke API (Demo version)

Java Platform Invoke API (Demo version) for MS Windows. Enables Java code to call native functions implemented in dynamic link libraries (DLLs) like in Microsoft .NET Framework. Written for JSE 1.5.x and later. Java platform invoke an API that enables Java code to call native functions implemented in dynamic link libraries (DLLs), such as those in the Win32 API. It locates and invokes an exported function and marshals its arguments (integers, strings, arrays, structures, and so on) across the interoperation boundary as needed. This API supports implicit marshaling that makes Java coding with native functions very simple. To consume exported DLL functions you need 1.Identify functions in DLLs. Minimally, you must specify the name of the function and name of the DLL that contains it. 2.Create a class to hold DLL functions. You can use an existing class, create an individual class for each native function, or create one class that contains a set of related native functions. This class should extend CNativeLibrary. Use the annotation ImportLibrary to bind your class to the native library. 3.Create prototypes in Java code. Write prototype of a native function as a method with signature that corresponds to the native function using data type map agreement. To identify the native function use the annotation Function. Mark the method with the native modifier. 4.Call a DLL function. Call the method on your Java class as you would any other Java method. As parameters can be passed structures and implemented in Java callback functions. Java Platform Invoke API (Demo version) is a demo categorized under development components, libraries tools.

Keywords: parameters integers prototypes native functions signature prototype dynamic link libraries demo version dll function win32 api java code microsoft net framework native library callback functions java class ms windows java coding java method framework java java platform admin section default settings

Object-Oriented JNI ...

Object-Oriented JNI for .NET (low-level)

Object-Oriented JNI for .NET (low-level), Library for .NET Framework v.1.1. Supports Standard JNI interface (SUN/IBM/MS JDK1.1.x-1.6.x) for developing and running code in C#, MCpp, VB, J#. The main features available: - JNI code can be written only in managed code; - supported .NET languages: C#, VB, J#, Managed C++; - implements regular JNI SDK compatible with JDK1.3.x (32 bits) and above; - supports two ways of Java Native methods implementation: from Java code with System.loadLibrary(...) or System.load(...) and from JNI code with RegisterNatives(...)/UnregisterNatives(...); - Java native methods are implemented only with .NET managed functions; - marshaling and unmarshaling of .NET data types are hidden from Developer; - implemented special mechanism for shellow copy of Java references in JNI code to reduce a number of them in JVM, save JVM Heap and improve JNI code performance. Comment: - to implement Java native methods from Java code with System.load() or System.loadLibrary() you should load OOJNI.NET20.DLL first in some place of your Java code. Set path to OOJNI.NET20.DLL and your .NET module like to any C++ JNI library; - this update includes fast cast operations from/to Java primitive arrays to/from .NET primitive arrays. The same library for .NET Framework v.2.0 is available at http://www.simtel.net/product.php[id]98653[SiteID]simtel.net. Object-Oriented JNI for .NET (low-level) is a demo categorized under development components, libraries tools.

Keywords: interface vb data types java references languages c jni mcpp two ways sun ibm implementation primitive arrays java code code performance loadlibrary level library java native methods heap acknowledgement business secret

  Search Software:      

Copyright © 2003-2012 FilesLand.com