Add these files to the classpath: continuations-matthiasm.jar continuations-riven.jar For ahead-of-time bytecode transformation, use the Ant task: de/matthiasmann/continuations/instrument/InstrumentationTask.java For runtime bytecode transformation, use the Java Agent as VM parameter: -javaagent:continuations-agent.jar