This post demonstrates how you can generate a Java core dump manually (using JNI). 1. Create a Java class /** * A class to demonstrate core dumping. */ public class CoreDumper { // load the library static { System.loadLibrary("nativelib"); } // native method declaration public native void core(); public static void main(String[] args) { new CoreDumper().core(); } } 2. Compile the Java class $ java