How to fix mvn is not Recognized as Internal and External Command | Install Apache Maven in Windows
Feb 18, 2025
Get the full source code of application here: Hi Join the official discord server to resolve doubts here: https://discord.gg/cRnjhk6nzW Visit my Online Free Media Tool Website https://freemediatools.com/ Buy Premium Scripts and Apps Here: https://procodestore.com/
View Video Transcript
0:00
uh hello guys welcome to this video so
0:02
in this video I will show you how to
0:04
tackle this error message so whenever
0:05
you type mvn which is a Apache M so it
0:10
will show you this error message that
0:12
mvn is not recognized as an internal or
0:14
external command so 99% of the time you
0:17
haven't installed the Apache M software
0:20
so what I will do is that I will simply
0:23
show you how to install it on windows so
0:26
go to their website apache1 if you just
0:29
type on Google the very first website
0:31
which comes right here and now you just
0:34
need to download this so click on
0:36
download and just uh select uh whatever
0:40
is your operating system so this is for
0:42
the windows here this will come binary
0:45
zip AR simply click on that and the zip
0:48
file will get
0:49
downloaded so once downloaded uh you
0:52
will see this ZIP file simply extract
0:54
all the content from
0:57
it so it will extract it will create a
1:00
folder right here so you will see that
1:04
now this is Apache M it has created this
1:07
you can re rename this to Let's suppose
1:11
Apache MAV like
1:14
this so if you open this folder you will
1:17
see uh this inside the bin folder we
1:20
have this mvn executable so if you try
1:24
to open command line here and type the
1:26
same command
1:28
mvn so it will tell you the Apache MAV
1:31
version which is
1:32
3.9.0 so now to actually register it
1:36
globally what we need to do we need to
1:38
transfer this
1:40
uh this whole folder so what I will do I
1:44
will cut this folder from here and uh go
1:48
into my C drive and just go to the
1:51
program files and simply paste this
1:54
folder here so simply paste it so now
1:58
you will see this folder
2:00
P so go to this and Bin directory and
2:04
just right click copy this whole
2:07
path so C program files AP Aim so in the
2:10
bin folder so just execute copy this and
2:14
go to the your environment variable and
2:16
just uh environment variable and go to
2:19
the system variable and just go to the
2:21
path simply select and go click the
2:24
addit button and add a new entry and
2:26
paste this path so as soon as you paste
2:29
this entire path in the environment
2:31
variable just click okay okay okay and
2:33
just restart your terminal and just
2:36
execute this command here
2:38
mvn so now if you see the command will
2:40
be successful so it is used for Java
2:43
projects for building Java projects or
2:45
Pim so if you just say mvn Das Das
2:50
version so you will
2:53
see it will install Apache M
2:56
3.9.0 so this is a MAV home Java version
3:01
so in this way you can install Apache M
3:04
and fix that error message I showed you
3:06
step by step so thank you very much for
3:08
watching this video and also check out
3:10
my website as well free mediat tools.com
3:12
uh which contains thousands of tools
3:15
regarding audio video and image and I
3:18
will be seeing you in the next video
#Other