generate and execute using jar