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

“mvn not recognized as an internal or external command”

Just now, shooter27 said:

It did not work

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

Recommended Posts

Posted · Original PosterOP

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.


On Order:
Eluktronics THICC-17 (Clevo X170SM-G):
CPU: i9-10900k @ 4.9GHz all cores
GPU: RTX 2080 Super (Max P 200W)
RAM: 16GB (2x8GB) @ 3200Mhz

Storage: 512 NVMe SSD, 4TB WD Passport USB-C
Displays: Unknown 1080p@240Hz (G-Sync), Asus VG248QE 1080p @144hz, 2x Dell SE2417HGR 1080p @60Hz
Expect review when it arrives in late November! :D

Current:

Eluktronics Mech-17 G1Rx:
CPU: i7-9750h @ 4.0GHz all cores
GPU: RTX 2070 @ 2004Mhz/(~1650Mhz)
RAM: 16GB (2x8GB) @ 2666Mhz
Storage: 512GB HP SX920, 4TB WD Passport USB-C
Displays: BOE NV173FHM-N44 1080p@144Hz, Asus VG248QE 1080p @144hz, 2x Dell SE2417HGR 1080p @60Hz

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

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

 

Old:
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
Posted · Original PosterOP
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.


On Order:
Eluktronics THICC-17 (Clevo X170SM-G):
CPU: i9-10900k @ 4.9GHz all cores
GPU: RTX 2080 Super (Max P 200W)
RAM: 16GB (2x8GB) @ 3200Mhz

Storage: 512 NVMe SSD, 4TB WD Passport USB-C
Displays: Unknown 1080p@240Hz (G-Sync), Asus VG248QE 1080p @144hz, 2x Dell SE2417HGR 1080p @60Hz
Expect review when it arrives in late November! :D

Current:

Eluktronics Mech-17 G1Rx:
CPU: i7-9750h @ 4.0GHz all cores
GPU: RTX 2070 @ 2004Mhz/(~1650Mhz)
RAM: 16GB (2x8GB) @ 2666Mhz
Storage: 512GB HP SX920, 4TB WD Passport USB-C
Displays: BOE NV173FHM-N44 1080p@144Hz, Asus VG248QE 1080p @144hz, 2x Dell SE2417HGR 1080p @60Hz

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

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

 

Old:
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
Posted · Original PosterOP
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
Posted · Best Answer
Just now, shooter27 said:

It did not work

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


On Order:
Eluktronics THICC-17 (Clevo X170SM-G):
CPU: i9-10900k @ 4.9GHz all cores
GPU: RTX 2080 Super (Max P 200W)
RAM: 16GB (2x8GB) @ 3200Mhz

Storage: 512 NVMe SSD, 4TB WD Passport USB-C
Displays: Unknown 1080p@240Hz (G-Sync), Asus VG248QE 1080p @144hz, 2x Dell SE2417HGR 1080p @60Hz
Expect review when it arrives in late November! :D

Current:

Eluktronics Mech-17 G1Rx:
CPU: i7-9750h @ 4.0GHz all cores
GPU: RTX 2070 @ 2004Mhz/(~1650Mhz)
RAM: 16GB (2x8GB) @ 2666Mhz
Storage: 512GB HP SX920, 4TB WD Passport USB-C
Displays: BOE NV173FHM-N44 1080p@144Hz, Asus VG248QE 1080p @144hz, 2x Dell SE2417HGR 1080p @60Hz

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

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

 

Old:
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
Posted · Original PosterOP
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


×