cleaned up javaapp launch.