The Visual Studio Code java development environment to build

 In some open source SDK, java code often need to write java code when converted to C # code to test the next function, installing Eclipse or IDEAs it seems not very value when, so take a atmospheres vs code to lower the occasional experiment . the following:

1. Download and install good java sdk

  Set environment variables: JAVA_HOME, PATH, CLASSPATH

  After verifying installed at the command line: java -version

2. Download and install maven

  Set environment variables: PATH

  After verifying installed at the command line: mvn -v

3. Install vs code plug-ins

  Installation are as follows:

4. Create maven project

  • Press Ctrl + Shift + P command to open the panel, the command execution Generate from Maven Archetype  
  • In the dialog box, select a directory to build the project, and then selected based on maven-archetype-quickstart created
  • After the selection is completed, the project will begin generating, during the need to fill in the necessary information in the terminal. groupId organization name, artifactId project name, version version number, the name of the jar package after package,

5. Debugging

  Once created, it can open the directory

  Ctrl + Shift + D to open the debug panel, debugging

  

Guess you like

Origin www.cnblogs.com/asminfo/p/11096681.html