Combine the sugar and water in a medium saucepan, and stir well. Bring to a boil over medium heat; add cranberries. Return to a boil, and cook 10 minutes, stirring occasionally.
Remove from heat; stir in jam and walnuts, and let cool. Spoon into airtight containers. Cover and chill.