The JAVA_HOME environment variable must point to the Java SDK for your application server as outlined in the preparing guide. See Preparing to Install AEM forms on JEE (Single Server) or Preparing to Install AEM forms on JEE (Server Cluster) for more information