Call Windows API (Open source solution)Tag(s): JNI Open Source
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/