Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97355

Can't create Maven project in VScode: "Program 'cmd' failed to run"

$
0
0

I've been trying for so long to get Maven for Java to work in VS code but every time I try making a new project I get this error:

Program 'cmd' failed to run: No application is associated with the specified file for this operationAt line:1 char:1
+ cmd /c mvn archetype:generate -DarchetypeArtifactId="maven-archetype- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
At line:1 char:1
+ cmd /c mvn archetype:generate -DarchetypeArtifactId="maven-archetype- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

I have both the Java sdk and ApacheMaven installed (mvn -v works in cmd) but I keep getting this error in VScode!


Viewing all articles
Browse latest Browse all 97355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>