Routed input through Java