Code runs in eclipse but wont run went exported as a runnable .jar

My code runs perfectly in eclipse but doesnt when its exported as a jar file. is there a debugger I could use or any solutions?

run it in command prompt (or OS equivalent)

java -jar jarFile.jar

where jarFile.jar is the name of your file.

Thanks! Forgot a capital letter…