Implemented nexec in Java.