Launcher/libLauncher/src/main/java/ru/gravit/utils/NativeJVMHalt.java

16 lines
309 B
Java
Raw Normal View History

package ru.gravit.utils;
import ru.gravit.utils.helper.LogHelper;
public class NativeJVMHalt {
public NativeJVMHalt(int haltCode) {
this.haltCode = haltCode;
2018-11-08 15:30:16 +03:00
LogHelper.error("JVM exit code %d", haltCode);
halt();
}
public int haltCode;
2018-11-08 15:30:16 +03:00
public native void halt();
}