Jump to Real's How-to Main page

Call Windows API (Open source solution)

NativeCall
NativeCall is a Java toolkit that lets you call operating system methods from whithin Java without JNI code.
// copying a file to a new one using the Windows API
import com.eaio.nativecall.*;
     
NativeCall.init();
IntCall ic = new IntCall("CopyFileA");
ic.executeCall(new Object[] { "test.txt", "test_copy.txt", Boolean.FALSE });
ic.destroy();

See http://johannburkard.de/software/nativecall/


If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2005
[ home ]