NazKidMC _
NazKidMC _

Reputation: 31

How do i fix "Unable to access Jar file" in IntelliJ idea?

So, I made a simple HelloWorld program and followed the IntelliJ idea tips and instructions on how to create my first program, although I still have a problem which is after I made an artifact of the program and set it at the "Edit Configurations" tab, it says this error.

Error: Unable to access jarfile C:\Users\nazgi\IdeaProjects\HelloWorld\artifacts\HelloWorld_jar

And before you ask I did change the directory, the original directory was C:/Users/nazgi/IdeaProjects/HelloWorld

Upvotes: 1

Views: 5104

Answers (1)

NazKidMC _
NazKidMC _

Reputation: 31

Okay so i figured it out, my directory was not specific enough so the program couldnt find the JAR file, so i changes the directory to

....\Java\HelloWorld\out\artifacts...\HelloWorld.jar

Upvotes: 2

Related Questions