Not all hosting platforms support Java web applications. You'll need a hosting environment with Apache Tomcat or another Java application server installed to deploy and run your application.