Cant choose .jar file

I click on the profile and a jar file and then it starts and shuts down quickly. Then it only lets me select a jar file when I flick the kill switch and then it does the same thing when I select a profile and jar file.