Right click on your .jar file and go to Properties. On one of the tabs (can't remember which), you will see a button that has something to do with unblocking the file or making it executable. Click that.
edit: Also, the Minecraft wiki has a good setup guide that I used for mine.