You can build using the mvn package command. It will generate a swfexample-1.0-SNAPSHOT.jar file in your target directory.
This example contains four different applications. They run independently.
If you are using Windows, you have to execute all applications on different command lines. If you are using Linux, macOS, or Unix, you can execute all applications on the same Terminal window one after another.
You can set the classpath in two ways. One uses the CLASSPATH environment variable to specify the AWS SDK lib and the AWS SDK third-party lib as follows:
export CLASSPATH='target/swfexample-1.0-SNAPSHOT.jar:/aws_sdk_path/lib/*:/aws_sdk_path/third-party/lib/*'java com.packt.example.Types
Or you can use java ...