- Mastering Microservices with Java 9(Second Edition)
- Sourabh Sharma
- 112字
- 2021-07-02 21:54:46
Executing with the Java command
Please make sure that Java and JAVA_HOME is set to Java 9 before executing the following commands.
Take a look at the following steps:
- To build the JAR file, perform the mvn clean package command from the Command Prompt from the parent project root directory (6392_chapter2). Here, clean and package are Maven goals:
mvn clean package
- It creates the JAR files in a respective target directory. We'll execute the JAR files generated in the 6392_chapter2\rest\target directory. A JAR file can be executed using the following command:
java -jar rest\target\rest-1.0-SNAPSHOT-exec.jar
Please make sure you execute the JAR file having a postfix exec as shown in the preceding command.
推薦閱讀
- Mastering Concurrency Programming with Java 8
- OpenDaylight Cookbook
- PHP程序設計(慕課版)
- Julia Cookbook
- C程序設計案例教程
- JavaScript動態網頁編程
- Orleans:構建高性能分布式Actor服務
- Getting Started with Nano Server
- 運維前線:一線運維專家的運維方法、技巧與實踐
- Hands-On Neural Network Programming with C#
- Learning Nessus for Penetration Testing
- 算法圖解
- 30天學通C#項目案例開發
- Python Social Media Analytics
- 深入理解Java虛擬機:JVM高級特性與最佳實踐