Skip to content

Build a jar file for easier access to CRIU from Java

License

Notifications You must be signed in to change notification settings

judovana/jigawatts-fork

 
 

Repository files navigation

jigawatts

Build a jar file for easier access to CRIU from Java

Dependencies: You must have java-devel and criu-devel installed on your system. $JAVA_HOME/include/jni.h must point to a valid jni.h file.

Caveats: You must rm /var/lib/sss/pipes/nss because that prevents criu from working right now. You must run with java -cp .:./checkpoint.jar -XX:+UseSerialGC -XX:-UsePerfData

You must run tests as root. CRIU will run in user mode eventually, but not everywhere yet.

Building with autotools

The source directory can be obtained either from a release tarball or a checkout of the git source code repository. When using the git repository, it is necessary to install the automake and autoconf tools and run autogen.sh to create the configure script.

$ mkdir <build_dir>
$ <src_dir>/configure --prefix=<install prefix>
$ make
$ make install

Building with Maven (experimental)

 $ mvn clean install

Is usually enough, but on some systems you need to go with root

 $ sudo mvn clean verify

About

Build a jar file for easier access to CRIU from Java

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 48.8%
  • M4 15.7%
  • Makefile 12.8%
  • C++ 12.1%
  • Shell 10.6%