

In the left panel of VSCode, navigate to my-app/src/main/java/com/mycompany/app, and open App.java.Launch VSCode and open the my-app directory from the File menu.This godawful directory structure – that’s how Java apps are built. You’ll see that Maven created a hello-world app for you. Run a directory listing and you’ll see App.java.(If you’re on Windows, your slashes lean the other way.) cd to my-app/src/main/java/com/mycompany/app.mvn archetype:generate -DgroupId= -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false.In your Terminal window (Command Prompt), navigate to an empty directory, where you wish to create your Java project.Add the M2 (bin) directory to your PATH.Set a M2 (not M2_HOME - just ‘M2’) environment variable to point to the bin subdirectory of the MAVEN directory.Set a M2_HOME environment variable to point to the MAVEN directory.Store it in a directory all by itself.Choose the link from the “Link” column to start the download.


‘java’ is command which used to run a compiled program.

cd to the directory where you saved test1.java.a Java file that is not part of a project.) This happens every time you work with a stand-alone Java file (i.e.It might give you a “Classpath is incomplete” warning.When it finishes installing, it will show a “Reload” indicator.VSCode will prompt you to install the Java extension pack.
