JAR file not working

I have JAR file, that is an executable, but when I try to run it on my laptop, it keeps saying main not found, but on my school computer, it works just fine, meaning that the JAR file runs. Does anyone know why this would happen? Would installing Java Platform EE 5 help?