If you deploy AWS instance from scratch, you must install JDK. Please refer to this doc: Requirements and prerequisites
If you prefer to use AWS Marketplace image, it already includes all the prerequisites needed and WCS installed: WCS automatic deployment from Amazon AWS Marketplace. But it is...