JAR Package Running Examples
- Go to the directory where the dubbo-samples-api.jar package is located.
1cd /home/dubbo-samples/dubbo-samples-api/target
- Start the provider.
1java -cp dubbo-samples-api.jar org.apache.dubbo.samples.provider.Application

If dubbo service started is displayed, the provider is started successfully.
- Open a new window and go to the directory where the dubbo-samples-api.jar package is stored.
1cd /home/dubbo-samples/dubbo-samples-api/target
- Start the consumer.
1java -cp dubbo-samples-api.jar org.apache.dubbo.samples.client.Application

If hi, dubbo is displayed, the consumer is started successfully.
To stop the provider service, switch to the provider window and press Ctrl+C.
Parent topic: Compilation