NingLee
NingLee

Reputation: 1489

Why are environment variables in cmd and Console2 different?

I installed Console2 to replace the Windows default console.

I set the console2 shell as cmd.exe. Everything is okay.

But today, I added maven's path in PATH variables, and execute mvn command, it was not recognized.

So I tried the command in cmd.exe, and it's okay.

Console2 should be only a wrapper for cmd, why the environment variable is not affected?

Upvotes: 0

Views: 410

Answers (2)

shangyin
shangyin

Reputation: 526

As you say console2 is only a shell for cmd.exe

It didn't change the environment of the system.

so they are always the same.

did you restart the console2? Try to restart console2 and it will be ok.

Upvotes: 1

NingLee
NingLee

Reputation: 1489

May be It need to restart Windows?

Today, I found the PATH back.

Upvotes: 1

Related Questions