I ve tried to install Tomcat server using binary files in eclipse.When I run cmd and run the startup command, cmd opens and closes and these written on the cmd screen:
>startup
Using CATALINA_BASE: "C:\Program Files\Tomcat\apache-tomcat-8.5.69"
Using CATALINA_HOME: "C:\Program Files\Tomcat\apache-tomcat-8.5.69"
Using CATALINA_TMPDIR: "C:\Program Files\Tomcat\apache-tomcat-8.5.69\temp"
Using JRE_HOME: "C:\Program Files\Java\jdk-15.0.2"
Using CLASSPATH: "C:\Program Files\Tomcat\apache-tomcat-8.5.69\bin\bootstrap.jar;C:\Program Files\Tomcat\apache-tomcat-8.5.69\bin\tomcat-juli.jar"
(startup.bat also tried but behaves same)
When I run this command:
catalina.bat run
Using CATALINA_BASE: "C:\Program Files\Tomcat\apache-tomcat-8.5.69"
Using CATALINA_HOME: "C:\Program Files\Tomcat\apache-tomcat-8.5.69"
Using CATALINA_TMPDIR: "C:\Program Files\Tomcat\apache-tomcat-8.5.69\temp"
Using JRE_HOME: "C:\Program Files\Java\jdk-15.0.2"
Using CLASSPATH: "C:\Program Files\Tomcat\apache-tomcat-8.5.69\bin\bootstrap.jar;C:\Program Files\Tomcat\apache-tomcat-8.5.69\bin\tomcat-juli.jar"
-Djava.endorsed.dirs=C:\Program Files\Tomcat\apache-tomcat-8.5.69\endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
>java -version
java version "15.0.2" 2021-01-19
Java(TM) SE Runtime Environment (build 15.0.2+7-27)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.2+7-27, mixed mode, sharing)
>javac -version
javac 15.0.2
- In the project, JRE setting is like that:
Project -> Properties -> Java Build Path -> Libraries -> JRE System Library -> JavaSE-1.8
- Eclipse version is :
Eclipse IDE for Java Developers (includes Incubating components)
Version: 2020-12 (4.18.0)
>echo %CATALINA_HOME%
C:\Program Files\Tomcat\apache-tomcat-8.5.69
>echo %JAVA_HOME%
%CATALINA_HOME%\bin exists in Path variable.
C:\Program Files\Java\jdk-15.0.2