IntelliJ IDEA won't run .jar file that runs perfectly fine in terminal

18 hours ago 1
ARTICLE AD BOX

Basically, I'm trying to run a .jar file make and run a .jar file made in IntelliJ IDEA.

But when I do copy>absolute path>open in>terminal> java -jar C:\Users\nameofUser\IdeaProjects\DMS Project\out\artifacts\DMS_Project_jar\DMS Project.jar , it'll give me an error message: "Error: Unable to access jarfile C:\Users\nameofUser\IdeaProjects\DMS".

However the same .jar file can run just fine when I open file location>copy as path>go to terminal>and java -jar the file.

I've run .jar files in IDEA before for different projects and as far as I can tell, I haven't changed any settings. Can I please get some help?

Read Entire Article