Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

“mvn not recognized as an internal or external command”

Go to solution Solved by Mnky313,
Just now, shooter27 said:

It did not work

are you sure there is an mvn.exe (or .bat,.cmd) in one of those folders?

Hi, 

I have this error “mvn not recognized as an internal or external command”

(on windows 10)


I have correct environment variables

JAVA_HOME =  C:\Program Files\Java\jdk-11
MAVEN_HOME = C:\maven

 

They are added to the path

%JAVA_HOME%\bin

%MAVEN_HOME%\bin

 

I restarted my machine

 

But I still get the error message when trying "mvn -version"

I need help, thanks

Link to post
Share on other sites

all I can say is make sure mvn.exe is in either 

C:\Program Files\Java\jdk-11\bin 

or 

C:\maven\bin

I would manually add both 

C:\Program Files\Java\jdk-11\bin 

and

C:\maven\bin

to path as well just to be sure, the 'mvn not recognized as an internal or external command' just means it can't find the executable.

why no dark mode?
Current:
Eluktronics THICC-17 (Clevo X170SM-G):
CPU: i9-10900k @ Up to 5.1GHz 
GPU: RTX 2080 Super (Max P 200W) @ 2040MHz
RAM: 32GB (4x8GB) @ 3200Mhz

Storage: 512GB PRO-X-G2R NVMe SSD, 2TB Silicon Power NVMe SSD, 4TB WD Passport USB-C
Displays: IPS 1080p@240Hz (G-Sync), Acer Predator CG437K 4k@120Hz (G-Sync)

Dell Poweredge R720 (Server):
CPUs: 2x Xeon E5-2667v2 @ 3.6Ghz all cores
RAM: 120GB (15x8GB) @ 1333Mhz

GPU: 2x Nvidia Tesla M40 @ 1225Mhz

Storage: 1x Intel 160GB SATA III SSD, 15x Seagate SAS Enterprise 1TB HDD in RAID 6

Temporary Mining Rig:
CPU: FX-6300 @ 3.5GHz all cores
GPU: RX 480 4GB, GTX 1060 6GB, GTX 1070

 

Old:

Eluktronics Mech-17 G1Rx (Died :(, sold for parts)
Custom SFF AMD Sleeper (Parted out and sold/sent to friends)
Dell Precision M6700 (both GPUs died, among other issues, officially shelved for now...)

Link to post
Share on other sites
1 minute ago, Mnky313 said:

would manually add both 


C:\Program Files\Java\jdk-11\bin 

and


C:\maven\bin

to path as well just to be sure, the 'mvn not recognized as an internal or external command' just means it can't find the executable.

you mean instead of the %...% variables ?

Link to post
Share on other sites
Just now, shooter27 said:

you mean instead of the %...% variables ?

yes, I know that it should mean the same thing but I've always manually entered paths.

why no dark mode?
Current:
Eluktronics THICC-17 (Clevo X170SM-G):
CPU: i9-10900k @ Up to 5.1GHz 
GPU: RTX 2080 Super (Max P 200W) @ 2040MHz
RAM: 32GB (4x8GB) @ 3200Mhz

Storage: 512GB PRO-X-G2R NVMe SSD, 2TB Silicon Power NVMe SSD, 4TB WD Passport USB-C
Displays: IPS 1080p@240Hz (G-Sync), Acer Predator CG437K 4k@120Hz (G-Sync)

Dell Poweredge R720 (Server):
CPUs: 2x Xeon E5-2667v2 @ 3.6Ghz all cores
RAM: 120GB (15x8GB) @ 1333Mhz

GPU: 2x Nvidia Tesla M40 @ 1225Mhz

Storage: 1x Intel 160GB SATA III SSD, 15x Seagate SAS Enterprise 1TB HDD in RAID 6

Temporary Mining Rig:
CPU: FX-6300 @ 3.5GHz all cores
GPU: RX 480 4GB, GTX 1060 6GB, GTX 1070

 

Old:

Eluktronics Mech-17 G1Rx (Died :(, sold for parts)
Custom SFF AMD Sleeper (Parted out and sold/sent to friends)
Dell Precision M6700 (both GPUs died, among other issues, officially shelved for now...)

Link to post
Share on other sites
1 hour ago, Mnky313 said:

yes, I know that it should mean the same thing but I've always manually entered paths.

It did not work

Link to post
Share on other sites
Just now, shooter27 said:

It did not work

are you sure there is an mvn.exe (or .bat,.cmd) in one of those folders?

why no dark mode?
Current:
Eluktronics THICC-17 (Clevo X170SM-G):
CPU: i9-10900k @ Up to 5.1GHz 
GPU: RTX 2080 Super (Max P 200W) @ 2040MHz
RAM: 32GB (4x8GB) @ 3200Mhz

Storage: 512GB PRO-X-G2R NVMe SSD, 2TB Silicon Power NVMe SSD, 4TB WD Passport USB-C
Displays: IPS 1080p@240Hz (G-Sync), Acer Predator CG437K 4k@120Hz (G-Sync)

Dell Poweredge R720 (Server):
CPUs: 2x Xeon E5-2667v2 @ 3.6Ghz all cores
RAM: 120GB (15x8GB) @ 1333Mhz

GPU: 2x Nvidia Tesla M40 @ 1225Mhz

Storage: 1x Intel 160GB SATA III SSD, 15x Seagate SAS Enterprise 1TB HDD in RAID 6

Temporary Mining Rig:
CPU: FX-6300 @ 3.5GHz all cores
GPU: RX 480 4GB, GTX 1060 6GB, GTX 1070

 

Old:

Eluktronics Mech-17 G1Rx (Died :(, sold for parts)
Custom SFF AMD Sleeper (Parted out and sold/sent to friends)
Dell Precision M6700 (both GPUs died, among other issues, officially shelved for now...)

Link to post
Share on other sites
6 minutes ago, Mnky313 said:

are you sure there is an mvn.exe (or .bat,.cmd) in one of those folders?

alright, I'm retarded, I downloaded maven source not binary so I was missing the whole bin directory

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×