Can't run jar file outside eclipse

I have been trying to run an executable jar file outside of eclipse. It works in eclipse, but when I run it from the jar file, it opens cmd and closes it right away. I can only read error. The rest is not readable because of the fast open and close! The jar is supposed to open a jbutton on a frame that can redirect someone to a link! I need help!