It's jammern in German, jamre in Norwegian and Danish, and jämra in Swedish. The Scandinavian versions and modern German all comes from Middle Low German. I'm guessing you got the word from German at some point too, as the German version originated from a version without the leading "j".