dc Josephson current in a long multichannel quantum wire