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.


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 (Gaming):
- CPU: Ryzen 5 2600 @ 3.8Ghz all cores

- GPU: Reference RX Vega 64
- RAM: 16GB (2x8GB) @ 3200Mhz
- Storage: 256GB Samsung PM951 NVMe SSD, 2TB WD Black HDD
- Displays: Asus VG248QE 1080p @144hz, 2x Dell SE2417HGR 1080p @60Hz

Dell Precision M6700 (Daily):

- CPU: i7-3720qm @ 3.4GHz all cores
- dGPU: RX480 MXM @ 1050Mhz
- RAM: 16GB (2x8GB) HyperX Impact @ 1600Mhz
- Storage: 256GB mSATA w/ 2x 1TB WD Black HDDs in RAID 0
- Display: Samsung LTN173HT02 120Hz 1080p internal display With 120Hz Input Mod! (Also Retired)

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.


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 (Gaming):
- CPU: Ryzen 5 2600 @ 3.8Ghz all cores

- GPU: Reference RX Vega 64
- RAM: 16GB (2x8GB) @ 3200Mhz
- Storage: 256GB Samsung PM951 NVMe SSD, 2TB WD Black HDD
- Displays: Asus VG248QE 1080p @144hz, 2x Dell SE2417HGR 1080p @60Hz

Dell Precision M6700 (Daily):

- CPU: i7-3720qm @ 3.4GHz all cores
- dGPU: RX480 MXM @ 1050Mhz
- RAM: 16GB (2x8GB) HyperX Impact @ 1600Mhz
- Storage: 256GB mSATA w/ 2x 1TB WD Black HDDs in RAID 0
- Display: Samsung LTN173HT02 120Hz 1080p internal display With 120Hz Input Mod! (Also Retired)

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?


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 (Gaming):
- CPU: Ryzen 5 2600 @ 3.8Ghz all cores

- GPU: Reference RX Vega 64
- RAM: 16GB (2x8GB) @ 3200Mhz
- Storage: 256GB Samsung PM951 NVMe SSD, 2TB WD Black HDD
- Displays: Asus VG248QE 1080p @144hz, 2x Dell SE2417HGR 1080p @60Hz

Dell Precision M6700 (Daily):

- CPU: i7-3720qm @ 3.4GHz all cores
- dGPU: RX480 MXM @ 1050Mhz
- RAM: 16GB (2x8GB) HyperX Impact @ 1600Mhz
- Storage: 256GB mSATA w/ 2x 1TB WD Black HDDs in RAID 0
- Display: Samsung LTN173HT02 120Hz 1080p internal display With 120Hz Input Mod! (Also Retired)

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

Newegg

×