Have you added JAVA_HOME to your environment variables?
If not:
- (if you have windows 10 then search environment variables in start. if not do the following)
- Go to Control Panel, choose System.
- Choose Advanced system settings. ...
- On the Advanced tab, click Environment Variables. ...
- Click New to create a new environment variable.
Now in the Variable name field, type JAVA_HOME
click Browse Directory and select the bin folder in your installed java directory
for example: C:\Program Files\Java\jdk-12.0.2\bin (Note that it shouldn't be exactly like this. this is just an example)
Click ok and close other windows. try running your exported jar file in your project directory/objects
Let me know if it worked