How to start TOMCAT by specifying JAVA_HOME on Windows

Depending on your company's security policy, you may not be able to change the windows environment variables. However, since the developer may need to set up a server on the local terminal, the method to start TOMCAT by specifying "JAVA_HOME" without changing the environment variable at that time is described below.


The following items must be downloaded and deployed locally. 1.JDK 2.TOMCAT In the following procedure, the JDK is expanded to "Program Files", but there is a method to extract it without using the installer, so if you use that method, start TOMCAT from the JDK download without using the installer. All of the above can be implemented by bypassing the security policy. (For how to extract the JDK without using the installer, create a separate page.)

Step 1 Check the extraction destination of the JDK

tempsnip.png In the capture, it is "C: \ Program Files \ Java \ jdk1.8.0_161".

Step 2 Check the storage location of the TOMCAT startup batch.

tempsnip.png In the capture, it is "C: \ 00_myspace \ 01_server \ 01_tomcat \ apache-tomcat-9.0.6 \ bin".

Step 3 Start the command prompt.


Step 4 Set JAVA_HOME.

set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_161


Step 5 Move to the storage destination of the TOMCAT startup batch.

cd C:\00_myspace\01_server\01_tomcat\apache-tomcat-9.0.6\bin


Step 6 Execute the TOMCAT startup batch.



Step 7 Confirm the startup with a browser.

URL:localhost:8080 image.png

As mentioned above, the above procedure is the procedure to start TOMCAT without setting environment variables.

Recommended Posts

How to start TOMCAT by specifying JAVA_HOME on Windows
[Java] How to update Java on Windows
How to install ImageMagick on Windows 10
How to start with Hyper-V instead of WSL2 on Docker Desktop for Windows
How to start tomcat local server without using eclipse
How to deploy on heroku
How to install JDK 8 on Windows without using the installer
How to deploy jQuery on Rails
How to deploy Laravel on CentOS 7
How to use Ruby on Rails
How to automatically operate a screen created in Java on Windows
How to use Bio-Formats on Ubuntu 20.04
How to display products by category on the same list screen
How to install MariaDB 10.4 on CentOS 8
Rails on Tiles (how to write)
How to install WildFly on Ubuntu 18.04
How to build vim on Ubuntu 20.04
How to start Camunda with Docker
How to check Java installed on Mac
A memorandum on how to use Eclipse
How to redo a deployment on Heroku
How to use Apache Derby on Eclipse
[Ruby on Rails] How to use CarrierWave
How to detect microphone conflicts on Android
How to install Eclipse (Photon) on Mac
How to install production Metabase on Ubuntu
How to switch Java versions on Mac
How to install beta php8.0 on CentOS8
How to set JAVA_HOME with Maven appassembler-maven-plugin
[Ruby on Rails] How to use redirect_to
[Ruby on Rails] How to use kaminari
How to install kafkacat on Amazon Linux2
Note: [Docker] How to start and stop
How to send push notifications on AWS
[Even beginners can do it! ] How to create Java environment on Windows 10 (JDK14.0.1)
[swift5] How to transition from the app to an external site by specifying the URL
How to share on the host side (windows) and guest side (CentOS 7) with VirtualBox
[Rails] How to decide the destination by "rails routes"
[Ruby on Rails] How to display error messages
How to deploy a container on AWS Lambda
How to configure ubuntu to be used on GCP
Write a dockerfile to start jupyter-lab on ubuntu
How to add / remove Ruby on Rails columns
How to make rbenv recognize OpenSSL on WSL
How to install network drivers on standalone Ubuntu
How to output CSV created by Rails to S3
How to save images on Heroku to S3 on AWS
How to install NVIDIA driver on Ubuntu 18.04 (Note)
Notes on how to use each JUnit Rule
How to separate .scss by controller in Rails
Note how to rollback Mysql deployed on Heroku
How to install multiple JDKs on Ubuntu 18.04 LTS
Double-click to open the jar file on Windows
[Rails MySQL] How to reset DB on heroku
[Ruby on Rails] How to install Bootstrap in Rails
How to build a Pytorch environment on Ubuntu
[Ruby on Rails] How to use session method
[Java] Memo on how to write the source
How to run NullpoMino 7.5.0 on Ubuntu 20.04.1 64bit version
Notes on how to create Burp Suite extensions
How to utilize knowledge to reduce support work by 10 to 20%