I\'m trying to set up Tomcat 6 on my server instance (Fresh install of Windows Server 2008 R2 Enterprise). I want to make a Java EE service available via a URL.
It
yes we require jdk inorder to run your requirement.. since you are providing .war file , we need jar command to extract contents from war,jar.. files. jar command is not found in JRE but only in JDK. if you wish you can checkout JDK,JRE. that is basic thing i observed apart from other things.
Web containers require JDK in order to support compilation of sources like JSP, as compiler is existing in JDK it requires the same.(this is one of the reasons why it may require JDK)
remove semi-colon from the end of JRE_HOME / JAVA_HOME variables. there should not be semi-colon…
variable: JAVA_HOME value : C:\Program Files\Java\jdk1.6.0 (note : no semicolon at the end)
variable: JRE_HOME value : C:\Program Files\Java\jre1.6.0 (note : no semicolon at the end)
Apply above changes and run your tomcat successfully.
I had the same problem. Specified JRE_HOME and received the same error message. The error message persisted after I had removed the system environment variable JAVA_HOME and rebooted. Turned out my JRE path was actually incorrect, the error message was just confusing.
Tomcat does not require a JDK. Tomcat ships with the Eclipse JDT compiler which Tomcat uses as part of the *.jsp -> *.java -> *.class process to convert JSPs to compiled Servlets.
However, if you specify JAVA_HOME, Tomcat expects that to point to a full JDK installation. If you want to use a JRE then you need to set JRE_HOME rather than JAVA_HOME.
Make JAVA_HOME as system variable instead of environment variable, restart application(Tomcat). It should work fine.
Alternatively you might be facing same issue as discussed here