check path for jar and exec