Bare minimum Java code to run Trap