Skip to content

Instantly share code, notes, and snippets.

@stfp
stfp / SelfKiller.java
Created May 19, 2011
Java class to kill the current process using JNA
View SelfKiller.java
/* Requires JNA
* Get jna.jar here: http://java.net/projects/jna/sources/svn/show/trunk/jnalib/dist
*/
import com.sun.jna.Library;
import com.sun.jna.Native;
public class SelfKiller
{
private interface CLibrary extends Library
{