Problem with Error: "Cannot start process, the working directory does not exist."

Answered

Hi there.

When I move a whole project from one computer to another, and I try to start the project in IDEA on the other computer, the following error occured when I want to start my unit-tests or want to start my application itself: "Cannot start process, the working directory does not exist."

There's no context for me to put this message in. I checked all my settings and everything seems to be allright. What have I done wrong?

Regards, Bernd

18 comments
Comment actions Permalink

Hi,

Check the "Working Directory" field in the Run panel (Maj+F10)

Regards

0
Comment actions Permalink

Horribly terse answer, daniel. That doesn't work. Nice try.

 

-2
Comment actions Permalink

I had this problem as well, and I want to elaborate on Daniel's answer. This worked for me:

1. Click the drop-down menu with the name of the test in the upper right corner of IntelliJ and click "Edit Configurations".

2. Go to the box that says "Working directory" and delete the contents so that there is no text there.

I hope it works for you too. 

29
Comment actions Permalink

Glorious, that worked !!! Thanks for your comment....

2
Comment actions Permalink

Awesome odainanna, works like a charm! Thanks.

0
Comment actions Permalink

Thanks odainanna. It worked

0
Comment actions Permalink

This worked for me as well. Thanks

0
Comment actions Permalink

It worked!!!!!!!! Thanks odainanna !

0
Comment actions Permalink

Not worked for me. My "working directory' also blank. But still shows an error. What should i do?

0
Comment actions Permalink

Great work odainanna..it works!!!

0
Comment actions Permalink

Doesn't work. 

I had to delete the .idea configuration directory to fix this.

1
Comment actions Permalink

Thanks @daniel it's working fine for me.

0
Comment actions Permalink

encontre esta solucion:

1.-ve a 'Run'

2.-luego a 'edit configurations' 

3.- click en 'working directory' luego seleccionar la carpeta donde se encuantra todos tus proyecto.

dato: " si no funciona, prueba seleccionando especificamente tu proyecto.". Saludos!!!

0
Comment actions Permalink

Concept: You need to configure your working directory to the location where your file is placed.

Steps:

  1. Click the box placed on the left side of the green run button. 
  2. Click on 'Edit Configurations...' 

  3. In the new window, go to the box saying 'Working Directory' and put the path where your project/file is present.
  4. Click on Apply and then OK
  5. The most important step: Thank Me 😀😀
2
Comment actions Permalink

The previous solution didn't work for me but I found one :

1. > File

2. >> Reload CMake Project

That creates the cmake-build-debug file that was missing.

0
Comment actions Permalink

If you face this problem running Python console in Django project, go to Project Structure and check the following:

  1. Modules - maybe there are orphan modules removed from filesystem.
  2. Facets - check each Django facet for path collisions or other issues. Try to remove all facets except the main one.
0

Please sign in to leave a comment.